diff options
| author | yum <yum.food.vr@gmail.com> | 2023-01-01 21:05:27 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-01-01 21:44:45 -0800 |
| commit | e25bdba3a3a53b09be5269d8b065c13b73ab55c3 (patch) | |
| tree | 1d1dc1d94cde92c2f4f8ce86017395054787515d /Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py | |
| parent | 0d408cc812a094a708edbe4baf536e928731cfc3 (diff) | |
Embed git in package
package.ps1 fetches PortableGit and embeds it in the package. This
eliminates all but one runtime dependency (MSVC++ Redistributable).
* Move Python into a new FOSS folder.
Diffstat (limited to 'Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py')
| -rw-r--r-- | Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py b/Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py deleted file mode 100644 index ffffe8b..0000000 --- a/Python/Dependencies/future-0.18.2/tests/test_future/test_import_star.py +++ /dev/null @@ -1,61 +0,0 @@ -""" -This tests whether - - from future.builtins import * - -works as expected: -- This should NOT introduce namespace pollution on Py3. -- On Python 2, this should not introduce any symbols that aren't in - __builtin__. - -""" - -from __future__ import absolute_import, print_function, unicode_literals - -import copy - -from future import utils -from future.tests.base import unittest, skip26 - - -original_locals = set(copy.copy(locals())) -original_globals = set(copy.copy(globals())) -new_names = set(['original_locals', 'original_globals', 'new_names']) -from future.builtins import * -new_locals = set(copy.copy(locals())) - new_names - original_locals -new_globals = set(copy.copy(globals())) - new_names - original_globals - \ - set(['new_locals']) - - -class TestImportStar(unittest.TestCase): - def test_namespace_pollution_locals(self): - if utils.PY3: - self.assertEqual(len(new_locals), 0, - 'namespace pollution: {0}'.format(new_locals)) - else: - pass # maybe check that no new symbols are introduced - - def test_namespace_pollution_globals(self): - if utils.PY3: - self.assertEqual(len(new_globals), 0, - 'namespace pollution: {0}'.format(new_globals)) - else: - pass # maybe check that no new symbols are introduced - - def test_iterators(self): - self.assertNotEqual(type(range(10)), list) - - def test_super(self): - pass - - def test_str(self): - self.assertIsNot(str, bytes) # Py2: assertIsNot only in 2.7 - self.assertEqual(str('blah'), u'blah') # Py3.3 and Py2 only - - def test_python_2_unicode_compatible_decorator(self): - # This should not be in the namespace - assert 'python_2_unicode_compatible' not in locals() - - -if __name__ == '__main__': - unittest.main() |
