Fix an usage of file().

This commit is contained in:
Berker Peksag 2014-06-08 08:19:04 +03:00
parent f1d9a62a4b
commit 03d4be0e39

View File

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