summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-17 19:22:41 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-17 19:22:41 (GMT)
commit313523ce2dd67db67b7dcbcc5f6d6ca95922b34b (patch)
tree0ebcad214cf25fb898023da2011dcc5183942ca0 /Lib/test/test_site.py
parentd2154ab0b728c8b5f5ec44d3496e8760a0504581 (diff)
downloadcpython-313523ce2dd67db67b7dcbcc5f6d6ca95922b34b.zip
cpython-313523ce2dd67db67b7dcbcc5f6d6ca95922b34b.tar.gz
cpython-313523ce2dd67db67b7dcbcc5f6d6ca95922b34b.tar.bz2
Issue #28192: Don't import readline in isolated mode
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 9afa56e..b048648 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -140,8 +140,6 @@ class HelperFunctionsTests(unittest.TestCase):
self.assertRegex(err_out.getvalue(), 'Traceback')
self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError')
- @unittest.skipIf(sys.platform == "win32", "Windows does not raise an "
- "error for file paths containing null characters")
def test_addpackage_import_bad_pth_file(self):
# Issue 5258
pth_dir, pth_fn = self.make_pth("abc\x00def\n")
@@ -447,10 +445,9 @@ class StartupImportTests(unittest.TestCase):
popen = subprocess.Popen([sys.executable, '-I', '-v', '-c',
'import sys; print(set(sys.modules))'],
stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ stderr=subprocess.PIPE,
+ encoding='utf-8')
stdout, stderr = popen.communicate()
- stdout = stdout.decode('utf-8')
- stderr = stderr.decode('utf-8')
modules = eval(stdout)
self.assertIn('site', modules)
@@ -474,6 +471,5 @@ class StartupImportTests(unittest.TestCase):
if sys.platform != 'darwin':
self.assertFalse(modules.intersection(collection_mods), stderr)
-
if __name__ == "__main__":
unittest.main()