4912
|
1 |
This patch came from in-house. A patch to make -I imply -S was submitted
|
|
2 |
upstream, but rejected, so this is the next simplest way to work around
|
|
3 |
issues with when the site module is imported.
|
|
4 |
|
|
5 |
--- Python-3.5.0rc2/Lib/test/test_site.py.~1~ 2015-08-25 10:19:13.000000000 -0700
|
|
6 |
+++ Python-3.5.0rc2/Lib/test/test_site.py 2015-09-02 12:38:45.356337855 -0700
|
|
7 |
@@ -438,7 +438,7 @@
|
|
8 |
def test_startup_imports(self):
|
|
9 |
# This tests checks which modules are loaded by Python when it
|
|
10 |
# initially starts upon startup.
|
|
11 |
- popen = subprocess.Popen([sys.executable, '-I', '-v', '-c',
|
|
12 |
+ popen = subprocess.Popen([sys.executable, '-I', '-S', '-v', '-c',
|
|
13 |
'import sys; print(set(sys.modules))'],
|
|
14 |
stdout=subprocess.PIPE,
|
|
15 |
stderr=subprocess.PIPE)
|
|
16 |
@@ -447,8 +447,6 @@
|
|
17 |
stderr = stderr.decode('utf-8')
|
|
18 |
modules = eval(stdout)
|
|
19 |
|
|
20 |
- self.assertIn('site', modules)
|
|
21 |
-
|
|
22 |
# http://bugs.python.org/issue19205
|
|
23 |
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
|
|
24 |
# _osx_support uses the re module in many placs
|