]> granicus.if.org Git - python/commitdiff
#5810: Fixed Distutils test_build_scripts
authorTarek Ziadé <ziade.tarek@gmail.com>
Sat, 25 Apr 2009 12:51:59 +0000 (12:51 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Sat, 25 Apr 2009 12:51:59 +0000 (12:51 +0000)
Lib/distutils/tests/test_build_scripts.py
Misc/NEWS

index 2acfab828effc5bd38c641a80a86d7398cbfa609..b55eb5857be523edccb9a524ec6ef18d489f0807 100644 (file)
@@ -90,7 +90,7 @@ class BuildScriptsTestCase(support.TempdirManager,
         # On linux-g++-32 with command line `./configure --enable-ipv6
         # --with-suffix=3`, python is compiled okay but the build scripts
         # failed when writing the name of the executable
-        old = sysconfig._config_vars.get('VERSION')
+        old = sysconfig.get_config_vars().get('VERSION')
         sysconfig._config_vars['VERSION'] = 4
         try:
             cmd.run()
index 125cf6ef83a1506d5d7b697ca3aeadf78717dd86..69081096b97f58c8ddc7d4ad0631ab534fa9e60e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -246,6 +246,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #5810: Fixed Distutils test_build_scripts so it uses 
+  sysconfig.get_config_vars.
+
 - Issue #4951: Fixed failure in test_httpservers.
 
 - Issue #3102:  All global symbols that the _ctypes extension defines