churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

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

c23ee7d
diff -up Python-3.2b2/Lib/test/test_subprocess.py.non-readable-path Python-3.2b2/Lib/test/test_subprocess.py
c23ee7d
--- Python-3.2b2/Lib/test/test_subprocess.py.non-readable-path	2010-12-29 16:25:38.498184175 -0500
c23ee7d
+++ Python-3.2b2/Lib/test/test_subprocess.py	2010-12-29 16:25:51.094184539 -0500
c23ee7d
@@ -578,7 +578,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)
c23ee7d
             if c.exception.errno != errno.ENOENT:  # ignore "no such file"