diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-01-07 17:54:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 17:54:31 +0200 |
commit | 3460198f6ba40a839f105c381f07179aba1e8c61 (patch) | |
tree | 1b43b27d96931ebfd4c7f23758da932d42c0940e /Lib/test/test_genericpath.py | |
parent | e46a8af450210ee5c7f0459ad6beddbc626ae60f (diff) | |
download | cpython-git-3460198f6ba40a839f105c381f07179aba1e8c61.tar.gz |
bpo-31802: Fix importing native path module before importing os. (#4017)
Diffstat (limited to 'Lib/test/test_genericpath.py')
-rw-r--r-- | Lib/test/test_genericpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index 01e11da098..ad5a59c44e 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -8,6 +8,7 @@ import sys import unittest import warnings from test import support +from test.support.script_helper import assert_python_ok def create_file(filename, data=b'foo'): @@ -486,6 +487,9 @@ class CommonTest(GenericTest): with self.assertRaisesRegex(TypeError, 'bytearray'): self.pathmodule.relpath(bytearray(b'foo'), bytearray(b'bar')) + def test_import(self): + assert_python_ok('-S', '-c', 'import ' + self.pathmodule.__name__) + class PathLikeTests(unittest.TestCase): |