[Python-checkins] r85363 - python/branches/py3k-ttk-debug-on-xp5/Lib/test/regrtest.py

hirokazu.yamamoto python-checkins at python.org
Mon Oct 11 12:47:18 CEST 2010


Author: hirokazu.yamamoto
Date: Mon Oct 11 12:47:18 2010
New Revision: 85363

Log:
Oops, RESOURCE_NAMES was tuple....

Modified:
   python/branches/py3k-ttk-debug-on-xp5/Lib/test/regrtest.py

Modified: python/branches/py3k-ttk-debug-on-xp5/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k-ttk-debug-on-xp5/Lib/test/regrtest.py	(original)
+++ python/branches/py3k-ttk-debug-on-xp5/Lib/test/regrtest.py	Mon Oct 11 12:47:18 2010
@@ -247,7 +247,9 @@
     # XXX: is this right place to do this?
     if not window_station_has_display_surfaces():
         print("Window Station has no display surfaces, so remove gui from RESOURCE_NAMES")
-        RESOURCE_NAMES.remove("gui")
+        tmp = list(RESOURCE_NAMES)
+        tmp.remove("gui")
+        RESOURCE_NAMES = tuple(tmp)
 
 TEMPDIR = os.path.abspath(tempfile.gettempdir())
 


More information about the Python-checkins mailing list