Backed out changeset 7d2018774925
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 18a85fd..a0b65df 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -294,7 +294,7 @@
if 'MACOSX_DEPLOYMENT_TARGET' in env:
del env['MACOSX_DEPLOYMENT_TARGET']
- with open(os.devnull, 'w') as devnull_fp:
+ with open('/dev/null', 'w') as devnull_fp:
p = subprocess.Popen([
sys.executable, '-c',
'import sysconfig; print(sysconfig.get_platform())',
@@ -320,7 +320,7 @@
'import sysconfig; print(sysconfig.get_platform())',
],
stdout=subprocess.PIPE,
- stderr=open(os.devnull),
+ stderr=open('/dev/null'),
env=env)
test_platform = p.communicate()[0].strip()
test_platform = test_platform.decode('utf-8')