Commits

Julien Phalip committed 82e2357

Use subprocess instead of the deprecated popen2 inside posix.popen(). The 'signal' and 'select' modules are included in the tests as they're imported by subprocess.

Comments (0)

Files changed (2)

pypy/module/posix/app_posix.py

 
         Open a pipe to/from a command returning a file object."""
 
-        from popen2 import MAXFD
+        from subprocess import MAXFD
         import os, gc
 
         def try_close(fd):

pypy/module/posix/test/test_posix2.py

 import signal
 
 def setup_module(mod):
-    usemodules = ['binascii', 'posix', 'struct', 'rctime']
+    usemodules = ['binascii', 'posix', 'struct', 'rctime', 'signal', 'select']
     if os.name != 'nt':
         usemodules += ['fcntl']
     else: