]> git.pld-linux.org Git - packages/python3.git/blame - python3-tests_with_pythonpath.patch
- up to 3.6.2
[packages/python3.git] / python3-tests_with_pythonpath.patch
CommitLineData
3efd6e92
JK
1diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_asyncio/test_tasks.py Python-3.5.0/Lib/test/test_asyncio/test_tasks.py
2--- Python-3.5.0.orig/Lib/test/test_asyncio/test_tasks.py 2015-09-13 13:41:23.000000000 +0200
7fbb63b9 3+++ Python-3.5.0/Lib/test/test_asyncio/test_tasks.py 2015-12-03 18:35:52.223668265 +0100
3efd6e92
JK
4@@ -1870,6 +1870,7 @@
5 cb.assert_called_once_with(fut)
6 self.assertEqual(fut.result(), [3, 1, exc, exc2])
7
8+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
9 def test_env_var_debug(self):
10 aio_path = os.path.dirname(os.path.dirname(asyncio.__file__))
11
7fbb63b9
JK
12diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_cmd_line.py Python-3.5.0/Lib/test/test_cmd_line.py
13--- Python-3.5.0.orig/Lib/test/test_cmd_line.py 2015-09-13 13:41:23.000000000 +0200
14+++ Python-3.5.0/Lib/test/test_cmd_line.py 2015-12-03 18:35:52.227001621 +0100
15@@ -237,6 +237,7 @@
16 self.assertEqual(rc, 0)
17 self.assertTrue(data.startswith(b'x'), data)
18
19+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
20 def test_large_PYTHONPATH(self):
21 path1 = "ABCDE" * 100
22 path2 = "FGHIJ" * 100
23@@ -252,6 +253,7 @@
24 self.assertIn(path1.encode('ascii'), out)
25 self.assertIn(path2.encode('ascii'), out)
26
27+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
28 def test_empty_PYTHONPATH_issue16309(self):
29 # On Posix, it is documented that setting PATH to the
30 # empty string is equivalent to not setting PATH at all,
3efd6e92 31diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_compileall.py Python-3.5.0/Lib/test/test_compileall.py
7fbb63b9
JK
32--- Python-3.5.0.orig/Lib/test/test_compileall.py 2015-12-03 18:35:31.483520885 +0100
33+++ Python-3.5.0/Lib/test/test_compileall.py 2015-12-03 18:35:52.227001621 +0100
3efd6e92
JK
34@@ -206,6 +206,7 @@
35 def _cleanup(self):
36 support.rmtree(self.directory)
37
38+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
39 def test_no_args_compiles_path(self):
40 # Note that -l is implied for the no args case.
41 bazfn = script_helper.make_script(self.directory, 'baz', '')
42@@ -214,6 +215,7 @@
43 self.assertNotCompiled(self.initfn)
44 self.assertNotCompiled(self.barfn)
45
46+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
47 def test_no_args_respects_force_flag(self):
48 bazfn = script_helper.make_script(self.directory, 'baz', '')
49 self.assertRunOK(PYTHONPATH=self.directory)
50@@ -230,6 +232,7 @@
51 mtime2 = os.stat(pycpath).st_mtime
52 self.assertNotEqual(mtime, mtime2)
53
54+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
55 def test_no_args_respects_quiet_flag(self):
56 script_helper.make_script(self.directory, 'baz', '')
57 noisy = self.assertRunOK(PYTHONPATH=self.directory)
7fbb63b9
JK
58diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_pydoc.py Python-3.5.0/Lib/test/test_pydoc.py
59--- Python-3.5.0.orig/Lib/test/test_pydoc.py 2015-09-13 13:41:23.000000000 +0200
60+++ Python-3.5.0/Lib/test/test_pydoc.py 2015-12-03 18:35:52.227001621 +0100
61@@ -631,6 +631,7 @@
62 self.addCleanup(rmtree, TESTFN)
63 importlib.invalidate_caches()
64
65+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
66 def test_badimport(self):
67 # This tests the fix for issue 5230, where if pydoc found the module
68 # but the module had an internal import error pydoc would report no doc
69diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_site.py Python-3.5.0/Lib/test/test_site.py
70--- Python-3.5.0.orig/Lib/test/test_site.py 2015-09-13 13:41:23.000000000 +0200
71+++ Python-3.5.0/Lib/test/test_site.py 2015-12-03 18:37:57.484550877 +0100
72@@ -320,6 +320,7 @@
73 """Restore sys.path"""
74 sys.path[:] = self.sys_path
75
76+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
77 def test_abs_paths(self):
78 # Make sure all imported modules have their __file__ and __cached__
79 # attributes as absolute paths. Arranging to put the Lib directory on
3efd6e92
JK
80diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_venv.py Python-3.5.0/Lib/test/test_venv.py
81--- Python-3.5.0.orig/Lib/test/test_venv.py 2015-09-13 13:41:23.000000000 +0200
7fbb63b9 82+++ Python-3.5.0/Lib/test/test_venv.py 2015-12-03 18:35:52.227001621 +0100
3efd6e92
JK
83@@ -111,6 +111,7 @@
84 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
85
86 @skipInVenv
87+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
88 def test_prefixes(self):
89 """
90 Test that the prefix values are as expected.
91@@ -249,6 +250,7 @@
92 # point to the venv being used to run the test, and we lose the link
93 # to the source build - so Python can't initialise properly.
94 @skipInVenv
95+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
96 def test_executable(self):
97 """
98 Test that the sys.executable value is as expected.
99@@ -279,6 +281,7 @@
100
101
102 @skipInVenv
103+@unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
104 class EnsurePipTest(BaseTest):
105 """Test venv module installation of pip."""
106 def assert_pip_not_installed(self):
107diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_warnings/__init__.py Python-3.5.0/Lib/test/test_warnings/__init__.py
7fbb63b9
JK
108--- Python-3.5.0.orig/Lib/test/test_warnings/__init__.py 2015-12-03 18:35:31.483520885 +0100
109+++ Python-3.5.0/Lib/test/test_warnings/__init__.py 2015-12-03 18:35:52.227001621 +0100
3efd6e92
JK
110@@ -918,6 +918,7 @@
111
112 class BootstrapTest(unittest.TestCase):
113 @unittest.skipUnless(support.is_resource_enabled("cmdline"), "python cmdline tests disabled")
114+ @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
115 def test_issue_8766(self):
116 # "import encodings" emits a warning whereas the warnings is not loaded
117 # or not completely loaded (warnings imports indirectly encodings by
This page took 0.068203 seconds and 4 git commands to generate.