]> granicus.if.org Git - python/commitdiff
Merged revisions 78832 via svnmerge from
authorFlorent Xicluna <florent.xicluna@gmail.com>
Sat, 13 Mar 2010 15:35:12 +0000 (15:35 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Sat, 13 Mar 2010 15:35:12 +0000 (15:35 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78832 | florent.xicluna | 2010-03-11 02:39:55 +0100 (jeu, 11 mar 2010) | 2 lines

  It is not optimal to test sys.stderr on a debug build.
........

Lib/test/test_sysconfig.py

index aa2c5144ea1a2ea6b69363d52d91c3cf7b35e193..67057bcbefddf9d2def74bad91317d6cfa6ee3eb 100644 (file)
@@ -243,9 +243,8 @@ class TestSysConfig(unittest.TestCase):
         symlink = get_attribute(os, "symlink")
         def get(python):
             cmd = [python, '-c',
-                   'import sysconfig; print sysconfig.get_platform()']
-            p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
-                                      stderr=subprocess.PIPE)
+                   'import sysconfig; print(sysconfig.get_platform())']
+            p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
             return p.communicate()
         real = os.path.realpath(sys.executable)
         link = os.path.abspath(TESTFN)