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 3f7dedbb60313848816a4fc809054b8b53e7045a..04ebc51541ccbcbb9a330c93454550be8f19fbf5 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 |
@@ -43,6 +43,7 @@ from webkitpy.common.system.filesystem import FileSystem |
class GenericFileSystemTests(object): |
"""Tests that should pass on either a real or mock filesystem.""" |
# pylint gets confused about this being a mixin: pylint: disable=E1101 |
+ |
def setup_generic_test_dir(self): |
fs = self.fs |
self.generic_test_dir = str(self.fs.mkdtemp()) |
@@ -135,7 +136,9 @@ class GenericFileSystemTests(object): |
self.assertTrue(self.fs.exists('bardir')) |
self.assertTrue(self.fs.exists(self.fs.join('bardir', 'baz'))) |
+ |
class RealFileSystemTest(unittest.TestCase, GenericFileSystemTests): |
+ |
def setUp(self): |
self.fs = FileSystem() |
self.setup_generic_test_dir() |
@@ -323,4 +326,4 @@ class RealFileSystemTest(unittest.TestCase, GenericFileSystemTests): |
self.assertEqual(fs.sep, os.sep) |
self.assertEqual(fs.join("foo", "bar"), |
- os.path.join("foo", "bar")) |
+ os.path.join("foo", "bar")) |