python-modernize -f lib2to3.fixes.file . -w
This commit is contained in:
parent
d6a5cdf987
commit
379ec8ae63
10 changed files with 34 additions and 34 deletions
|
|
@ -36,7 +36,7 @@ class TestGetUploadPath(unittest.TestCase):
|
|||
fullpath = '{0}/{1}'.format(work.return_value, reldir)
|
||||
os.makedirs(fullpath)
|
||||
|
||||
with file('{0}/.user'.format(fullpath), 'wb') as f:
|
||||
with open('{0}/.user'.format(fullpath), 'wb') as f:
|
||||
f.write('1')
|
||||
|
||||
with self.assertRaises(GenericError):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue