1 This patch came from in-house. A patch to make -I imply -S was submitted |
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 |
2 upstream, but rejected, so this is the next simplest way to work around |
3 issues with when the site module is imported. |
3 issues with when the site module is imported. |
4 |
4 |
5 --- Python-3.5.0rc2/Lib/test/test_site.py.~1~ 2015-08-25 10:19:13.000000000 -0700 |
5 --- Python-3.5.2/Lib/test/test_site.py.~1~ 2016-06-25 14:38:37.000000000 -0700 |
6 +++ Python-3.5.0rc2/Lib/test/test_site.py 2015-09-02 12:38:45.356337855 -0700 |
6 +++ Python-3.5.2/Lib/test/test_site.py 2016-07-08 07:09:08.106539974 -0700 |
7 @@ -438,7 +438,7 @@ |
7 @@ -443,7 +443,7 @@ |
8 def test_startup_imports(self): |
8 def test_startup_imports(self): |
9 # This tests checks which modules are loaded by Python when it |
9 # This tests checks which modules are loaded by Python when it |
10 # initially starts upon startup. |
10 # initially starts upon startup. |
11 - popen = subprocess.Popen([sys.executable, '-I', '-v', '-c', |
11 - popen = subprocess.Popen([sys.executable, '-I', '-v', '-c', |
12 + popen = subprocess.Popen([sys.executable, '-I', '-S', '-v', '-c', |
12 + popen = subprocess.Popen([sys.executable, '-I', '-S', '-v', '-c', |
13 'import sys; print(set(sys.modules))'], |
13 'import sys; print(set(sys.modules))'], |
14 stdout=subprocess.PIPE, |
14 stdout=subprocess.PIPE, |
15 stderr=subprocess.PIPE) |
15 stderr=subprocess.PIPE) |
16 @@ -447,8 +447,6 @@ |
16 @@ -452,8 +452,6 @@ |
17 stderr = stderr.decode('utf-8') |
17 stderr = stderr.decode('utf-8') |
18 modules = eval(stdout) |
18 modules = eval(stdout) |
19 |
19 |
20 - self.assertIn('site', modules) |
20 - self.assertIn('site', modules) |
21 - |
21 - |