~dobey/ubuntuone-dev-tools/run-with-flakes

« back to all changes in this revision

Viewing changes to ubuntuone/devtools/runners/__init__.py

  • Committer: Tarmac
  • Author(s): Brian Curtin
  • Date: 2012-08-21 22:21:05 UTC
  • mfrom: (88.1.2 devtools-unicode-func)
  • Revision ID: tarmac-20120821222105-d1y860yxwjt8uj3h
- Convert unicode type usage to use the bytes/text compatibility layer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from ubuntuone.devtools.errors import TestError, UsageError
40
40
from ubuntuone.devtools.testing.txcheck import TXCheckSuite
41
41
from ubuntuone.devtools.utils import OptionParser
 
42
from ubuntuone.devtools.compat import text_type
42
43
 
43
44
__all__ = ['BaseTestOptions', 'BaseTestRunner', 'main']
44
45
 
212
213
        """Comma-separate list of test modules to ignore,
213
214
           e.g: test_gtk.py, test_account.py
214
215
           """
215
 
        self['ignore-modules'] = map(unicode.strip, option.split(','))
 
216
        self['ignore-modules'] = map(text_type.strip, option.split(','))
216
217
 
217
218
    def opt_ignore_paths(self, option):
218
219
        """Comma-separated list of relative paths to ignore,
219
220
           e.g: tests/platform/windows, tests/platform/macosx
220
221
           """
221
 
        self['ignore-paths'] = map(unicode.strip, option.split(','))
 
222
        self['ignore-paths'] = map(text_type.strip, option.split(','))
222
223
 
223
224
    def opt_loop(self, option):
224
225
        """Loop tests the specified number of times."""