1. python_mirrors
  2. features/pep-420

Commits

Ross Lagerwall  committed e5a94b5

Fix sporadic test_subprocess regression introduced by 834650d63130.

  • Participants
  • Parent commits 7800080
  • Branches default

Comments (0)

Files changed (1)

File Lib/test/test_subprocess.py

View file
 
     def test_poll(self):
         p = subprocess.Popen([sys.executable, "-c",
-                              "import os",
-                              "os.read(1)"], stdin=subprocess.PIPE)
+                              "import os; os.read(0, 1)"],
+                             stdin=subprocess.PIPE)
         self.addCleanup(p.stdin.close)
         self.assertIsNone(p.poll())
         os.write(p.stdin.fileno(), b'A')