Fix a potential NameError.

This commit is contained in:
Thomas Heller 2008-07-15 17:14:09 +00:00
parent d1abd25ed8
commit 0d755b4e2b
1 changed files with 1 additions and 1 deletions

View File

@ -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")