Skip to content

Commit ae5c6e1

Browse files
committed
PY2: Remove list.clear
1 parent a9cb28c commit ae5c6e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/utils/tests/test_filemanip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_cifs_check():
349349
('/', False)]
350350

351351
orig_table = _cifs_table[:]
352-
_cifs_table.clear()
352+
_cifs_table[:] = []
353353

354354
for target, _ in cifs_targets:
355355
assert on_cifs(target) is False
@@ -358,5 +358,5 @@ def test_cifs_check():
358358
for target, expected in cifs_targets:
359359
assert on_cifs(target) is expected
360360

361-
_cifs_table.clear()
361+
_cifs_table[:] = []
362362
_cifs_table.extend(orig_table)

0 commit comments

Comments
 (0)