| Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
|
| index 8455a903f17981df8e3521140ed53bed258de3be..749562350ebd0878c7db2882776734c381ebff17 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
|
| @@ -261,13 +261,13 @@ class RealFileSystemTest(unittest.TestCase, GenericFileSystemTests):
|
| unicode_text_string = u'\u016An\u012Dc\u014Dde\u033D'
|
| try:
|
| text_path = tempfile.mktemp(prefix='tree_unittest_')
|
| - out_file = fs.open_text_file_for_writing(text_path)
|
| - out_file.write(unicode_text_string)
|
| - out_file.close()
|
| + file = fs.open_text_file_for_writing(text_path)
|
| + file.write(unicode_text_string)
|
| + file.close()
|
|
|
| - in_file = fs.open_text_file_for_reading(text_path)
|
| - read_text = in_file.read()
|
| - in_file.close()
|
| + file = fs.open_text_file_for_reading(text_path)
|
| + read_text = file.read()
|
| + file.close()
|
|
|
| self.assertEqual(read_text, unicode_text_string)
|
| finally:
|
| @@ -312,7 +312,7 @@ class RealFileSystemTest(unittest.TestCase, GenericFileSystemTests):
|
| RealFileSystemTest._remove_failures -= 1
|
| if RealFileSystemTest._remove_failures >= 0:
|
| try:
|
| - raise WindowsError # pylint: disable=undefined-variable
|
| + raise WindowsError
|
| except NameError:
|
| raise FileSystem._WindowsError
|
|
|
|
|