Fix an usage of file().
This commit is contained in:
parent
f1d9a62a4b
commit
03d4be0e39
@ -50,7 +50,7 @@ class TestWorkbench(object):
|
||||
# kill a workbench
|
||||
this_workbench = self.workbench_manager.create()
|
||||
tmpfile_name = this_workbench.joinpath('temp.txt')
|
||||
tmpfile = file(tmpfile_name, 'w')
|
||||
tmpfile = open(tmpfile_name, 'w')
|
||||
with tmpfile:
|
||||
tmpfile.write('lollerskates')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user