Skip to content

Commit f5ba0d6

Browse files
committed
Fix FSImportHook tests on python3
1 parent 0958c4f commit f5ba0d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/tests/test_importhook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def tearDown(self):
2323
if isinstance(mph,FSImportHook):
2424
sys.meta_path.remove(mph)
2525
for ph in list(sys.path_hooks):
26-
if issubclass(ph,FSImportHook):
27-
sys.path_hooks.remove(mph)
26+
if isinstance(ph, type) and issubclass(ph,FSImportHook):
27+
sys.path_hooks.remove(ph)
2828
for (k,v) in sys.modules.items():
2929
if k.startswith("fsih_"):
3030
del sys.modules[k]

0 commit comments

Comments
 (0)