From 424a50000a78fff715de4417dba9b4498aeeee4c Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 29 Sep 2017 13:40:02 +0300 Subject: Imported python3.5 3.5.4-4 --- debian/patches/issue21264.diff | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 debian/patches/issue21264.diff (limited to 'debian/patches/issue21264.diff') diff --git a/debian/patches/issue21264.diff b/debian/patches/issue21264.diff new file mode 100644 index 0000000..6c6287b --- /dev/null +++ b/debian/patches/issue21264.diff @@ -0,0 +1,31 @@ +# DP: Fix issue #21264, test_compileall test failures in the installed location + +Index: b/Lib/test/test_compileall.py +=================================================================== +--- a/Lib/test/test_compileall.py ++++ b/Lib/test/test_compileall.py +@@ -249,20 +249,20 @@ + os.utime(pycpath, (time.time()-60,)*2) + mtime = os.stat(pycpath).st_mtime + # Without force, no recompilation +- self.assertRunOK(PYTHONPATH=self.directory) ++ self.assertRunOK(self.directory) + mtime2 = os.stat(pycpath).st_mtime + self.assertEqual(mtime, mtime2) + # Now force it. +- self.assertRunOK('-f', PYTHONPATH=self.directory) ++ self.assertRunOK('-f', self.directory) + mtime2 = os.stat(pycpath).st_mtime + self.assertNotEqual(mtime, mtime2) + + def test_no_args_respects_quiet_flag(self): + self._skip_if_sys_path_not_writable() + script_helper.make_script(self.directory, 'baz', '') +- noisy = self.assertRunOK(PYTHONPATH=self.directory) ++ noisy = self.assertRunOK(self.directory) + self.assertIn(b'Listing ', noisy) +- quiet = self.assertRunOK('-q', PYTHONPATH=self.directory) ++ quiet = self.assertRunOK('-q', self.directory) + self.assertNotIn(b'Listing ', quiet) + + # Ensure that the default behavior of compileall's CLI is to create -- cgit v1.2.3