churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame python-3.2.1-fix-test-subprocess-with-nonreadable-path-dir.patch

cce760d
diff -up Python-3.2.1/Lib/test/test_subprocess.py.non-readable-path Python-3.2.1/Lib/test/test_subprocess.py
cce760d
--- Python-3.2.1/Lib/test/test_subprocess.py.non-readable-path	2011-07-09 02:58:51.000000000 -0400
cce760d
+++ Python-3.2.1/Lib/test/test_subprocess.py	2011-07-11 11:34:16.284426005 -0400
cce760d
@@ -618,7 +618,7 @@ class ProcessTestCase(BaseTestCase):
c23ee7d
         for i in range(1024):
c23ee7d
             # Windows raises IOError.  Others raise OSError.
c23ee7d
             with self.assertRaises(EnvironmentError) as c:
c23ee7d
-                subprocess.Popen(['nonexisting_i_hope'],
c23ee7d
+                subprocess.Popen(['/usr/bin/nonexisting_i_hope'],
c23ee7d
                                  stdout=subprocess.PIPE,
c23ee7d
                                  stderr=subprocess.PIPE)
cce760d
             # ignore errors that indicate the command was not found