Skip to content

Commit 84cd0ee

Browse files
committed
Support ModuleNotFoundError in older Python versions
1 parent 6eb2a56 commit 84cd0ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_selector.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,12 @@ def test_set(self):
916916
[u'url', u'name', u'startDate', u'location', u'offers'])
917917

918918

919+
try:
920+
ModuleNotFoundError
921+
except NameError:
922+
ModuleNotFoundError = ImportError
923+
924+
919925
class LoadObjectTestCase(unittest.TestCase):
920926

921927
def test_incomplete_path(self):

0 commit comments

Comments
 (0)