mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix a Python 2 issue
This commit is contained in:
@@ -15,7 +15,7 @@ def test_folder_io_walk():
|
||||
root, folder_ios, file_ios = next(iterator)
|
||||
assert folder_ios
|
||||
assert root.path == join(root_dir, 'ns2')
|
||||
folder_ios.clear()
|
||||
folder_ios[:] = [] # Not folder_ios.clear() because Python 2
|
||||
assert next(iterator, None) is None
|
||||
|
||||
|
||||
@@ -23,5 +23,5 @@ def test_folder_io_walk2():
|
||||
root_dir = get_example_dir('namespace_package')
|
||||
iterator = FolderIO(root_dir).walk()
|
||||
root, folder_ios, file_ios = next(iterator)
|
||||
folder_ios.clear()
|
||||
folder_ios[:] = [] # Not folder_ios.clear() because Python 2
|
||||
assert next(iterator, None) is None
|
||||
|
||||
Reference in New Issue
Block a user