diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2014-05-16 17:40:40 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2014-05-16 17:40:40 (GMT) |
commit | 3497c0bf957be33c6794a4548cfa53dbb0f9b5df (patch) | |
tree | 1ef477761c0fcb8e79222ef05a40c4ef5747ec6f /Lib/test/test_importlib/extension/test_case_sensitivity.py | |
parent | d50cee204558c57471c7cf09169efb19544cdc2c (diff) | |
download | cpython-3497c0bf957be33c6794a4548cfa53dbb0f9b5df.zip cpython-3497c0bf957be33c6794a4548cfa53dbb0f9b5df.tar.gz cpython-3497c0bf957be33c6794a4548cfa53dbb0f9b5df.tar.bz2 |
Issue #21503: Use test_both() consistently in test_importlib.
Diffstat (limited to 'Lib/test/test_importlib/extension/test_case_sensitivity.py')
-rw-r--r-- | Lib/test/test_importlib/extension/test_case_sensitivity.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_importlib/extension/test_case_sensitivity.py b/Lib/test/test_importlib/extension/test_case_sensitivity.py index 989ad1d..c7d6ca6 100644 --- a/Lib/test/test_importlib/extension/test_case_sensitivity.py +++ b/Lib/test/test_importlib/extension/test_case_sensitivity.py @@ -5,7 +5,7 @@ import unittest from .. import util -frozen_machinery, source_machinery = util.import_importlib('importlib.machinery') +machinery = util.import_importlib('importlib.machinery') # XXX find_spec tests @@ -41,9 +41,10 @@ class ExtensionModuleCaseSensitivityTest: loader = self.find_module() self.assertTrue(hasattr(loader, 'load_module')) -Frozen_ExtensionCaseSensitivity, Source_ExtensionCaseSensitivity = util.test_both( - ExtensionModuleCaseSensitivityTest, - machinery=[frozen_machinery, source_machinery]) + +(Frozen_ExtensionCaseSensitivity, + Source_ExtensionCaseSensitivity + ) = util.test_both(ExtensionModuleCaseSensitivityTest, machinery=machinery) if __name__ == '__main__': |