[Python-3000-checkins] r64969 - python/branches/py3k/Lib/test/test_set.py

thomas.heller python-3000-checkins at python.org
Tue Jul 15 19:14:09 CEST 2008


Author: thomas.heller
Date: Tue Jul 15 19:14:09 2008
New Revision: 64969

Log:
Fix a potential NameError.


Modified:
   python/branches/py3k/Lib/test/test_set.py

Modified: python/branches/py3k/Lib/test/test_set.py
==============================================================================
--- python/branches/py3k/Lib/test/test_set.py	(original)
+++ python/branches/py3k/Lib/test/test_set.py	Tue Jul 15 19:14:09 2008
@@ -297,8 +297,8 @@
         w = ReprWrapper()
         s = self.thetype([w])
         w.value = s
+        fo = open(support.TESTFN, "w")
         try:
-            fo = open(support.TESTFN, "w")
             fo.write(str(s))
             fo.close()
             fo = open(support.TESTFN, "r")


More information about the Python-3000-checkins mailing list