diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 12:11:37 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 12:11:37 +0100 |
commit | 135b4141389138d95ad2c1a83a6a706f9758ceb6 (patch) | |
tree | 130bce997d5d6562db51f940f186f427b1779ee6 /test | |
parent | 2575a944af5839cf1bbafbdfe7f7f55478020014 (diff) | |
download | logilab-common-135b4141389138d95ad2c1a83a6a706f9758ceb6.tar.gz |
2to3 has some more usable fixers
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest_modutils.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unittest_modutils.py b/test/unittest_modutils.py index 42cd7d5..709c7f8 100644 --- a/test/unittest_modutils.py +++ b/test/unittest_modutils.py @@ -216,11 +216,11 @@ class get_modules_tc(TestCase): """ import data.find_test as data mod_path = ("data", 'find_test') - modules = modutils.get_modules(path.join(*mod_path), data.__path__[0]) - modules.sort() + modules = sorted(modutils.get_modules(path.join(*mod_path), + data.__path__[0])) self.assertSetEqual(set(modules), - set([ '.'.join(mod_path + (mod, )) for mod in 'module', 'module2', - 'noendingnewline', 'nonregr'])) + set([ '.'.join(mod_path + (mod, )) for mod in ('module', 'module2', + 'noendingnewline', 'nonregr')])) class get_modules_files_tc(TestCase): @@ -230,8 +230,8 @@ class get_modules_files_tc(TestCase): in subdirectories """ import data - modules = modutils.get_module_files(path.join(DATADIR, 'find_test'), data.__path__[0]) - modules.sort() + modules = sorted(modutils.get_module_files(path.join(DATADIR, 'find_test'), + data.__path__[0])) self.assertEqual(modules, [path.join(DATADIR, 'find_test', x) for x in ['__init__.py', 'module.py', 'module2.py', 'noendingnewline.py', 'nonregr.py']]) |