Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"))

Powered by Google App Engine
This is Rietveld 408576698