summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-07-15 17:14:09 (GMT)
committerThomas Heller <theller@ctypes.org>2008-07-15 17:14:09 (GMT)
commit0d755b4e2b6af874781e01dd1ceb70e3a9b84045 (patch)
treedc902722e1f53ba23b996dfebaefc1a23a3b2d4f /Lib/test/test_set.py
parentd1abd25ed8e14a64da21d17ece73c49390b9b083 (diff)
downloadcpython-0d755b4e2b6af874781e01dd1ceb70e3a9b84045.zip
cpython-0d755b4e2b6af874781e01dd1ceb70e3a9b84045.tar.gz
cpython-0d755b4e2b6af874781e01dd1ceb70e3a9b84045.tar.bz2
Fix a potential NameError.
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index f263a7d..0e92551 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -297,8 +297,8 @@ class TestJointOps(unittest.TestCase):
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")