From: Thomas Heller Date: Tue, 15 Jul 2008 17:14:09 +0000 (+0000) Subject: Fix a potential NameError. X-Git-Tag: v3.0b2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d755b4e2b6af874781e01dd1ceb70e3a9b84045;p=thirdparty%2FPython%2Fcpython.git Fix a potential NameError. --- diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index f263a7dba327..0e9255149a21 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")