mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a potential NameError.
This commit is contained in:
parent
d1abd25ed8
commit
0d755b4e2b
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue