Skip to content

Commit 5376889

Browse files
committed
💚 fix mock dependency issue. python 3 has it in unittest so we are not installing it in python 3
1 parent 4b1a5d0 commit 5376889

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_gitfs_opener.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import fs
2-
from mock import patch
2+
try:
3+
from mock import patch
4+
except ImportError:
5+
from unittest.mock import patch
6+
37
from nose.tools import ok_
48
from gitfs2.repo import GitRequire
59

0 commit comments

Comments
 (0)