1 diff -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
3 +++ Python-3.5.0/Lib/test/test_asyncio/test_tasks.py 2015-12-03 18:35:52.223668265 +0100
5 cb.assert_called_once_with(fut)
6 self.assertEqual(fut.result(), [3, 1, exc, exc2])
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__))
12 diff -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
16 self.assertEqual(rc, 0)
17 self.assertTrue(data.startswith(b'x'), data)
19 + @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
20 def test_large_PYTHONPATH(self):
24 self.assertIn(path1.encode('ascii'), out)
25 self.assertIn(path2.encode('ascii'), out)
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,
31 diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_compileall.py Python-3.5.0/Lib/test/test_compileall.py
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
36 support.rmtree(self.directory)
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', '')
43 self.assertNotCompiled(self.initfn)
44 self.assertNotCompiled(self.barfn)
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)
51 mtime2 = os.stat(pycpath).st_mtime
52 self.assertNotEqual(mtime, mtime2)
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)
58 diff -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
62 self.addCleanup(rmtree, TESTFN)
63 importlib.invalidate_caches()
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
69 diff -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
73 """Restore sys.path"""
74 sys.path[:] = self.sys_path
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
80 diff -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
82 +++ Python-3.5.0/Lib/test/test_venv.py 2015-12-03 18:35:52.227001621 +0100
84 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
87 + @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
88 def test_prefixes(self):
90 Test that the prefix values are as expected.
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.
95 + @unittest.skipIf("PYTHONPATH" in os.environ, "$PYTHONPATH set")
96 def test_executable(self):
98 Test that the sys.executable value is as expected.
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):
107 diff -dur -x '*~' Python-3.5.0.orig/Lib/test/test_warnings/__init__.py Python-3.5.0/Lib/test/test_warnings/__init__.py
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
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