diff options
author | Ravi Shankar <wafflespeanut@gmail.com> | 2016-11-09 16:10:39 +0530 |
---|---|---|
committer | Ravi Shankar <wafflespeanut@gmail.com> | 2016-11-10 18:56:51 +0530 |
commit | f214765b61014d2c69120ae9b18743a5f66d8740 (patch) | |
tree | 8828e0a9392a7e2c6a5bb26266916e3538acc750 /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | 32a953f0bacb245e507d2a5125907b5ce724e332 (diff) | |
download | servo-f214765b61014d2c69120ae9b18743a5f66d8740.tar.gz servo-f214765b61014d2c69120ae9b18743a5f66d8740.zip |
Move file list iterator to a new module
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 6dd97aee7e3..864571528cb 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -190,12 +190,11 @@ class CheckTidiness(unittest.TestCase): def test_file_list(self): base_path='./python/tidy/servo_tidy_tests/test_ignored' - file_list = tidy.get_file_list(base_path, only_changed_files=False, - exclude_dirs=[]) + file_list = tidy.FileList(base_path, only_changed_files=False, exclude_dirs=[]) lst = list(file_list) self.assertEqual([os.path.join(base_path, 'whee', 'test.rs'), os.path.join(base_path, 'whee', 'foo', 'bar.rs')], lst) - file_list = tidy.get_file_list(base_path, only_changed_files=False, - exclude_dirs=[os.path.join(base_path, 'whee', 'foo')]) + file_list = tidy.FileList(base_path, only_changed_files=False, + exclude_dirs=[os.path.join(base_path, 'whee', 'foo')]) lst = list(file_list) self.assertEqual([os.path.join(base_path, 'whee', 'test.rs')], lst) |