Skip to content

Commit

Permalink
Support ModuleNotFoundError in older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Oct 2, 2019
1 parent 6eb2a56 commit 84cd0ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,12 @@ def test_set(self):
[u'url', u'name', u'startDate', u'location', u'offers'])


try:
ModuleNotFoundError
except NameError:
ModuleNotFoundError = ImportError


class LoadObjectTestCase(unittest.TestCase):

def test_incomplete_path(self):
Expand Down

0 comments on commit 84cd0ee

Please sign in to comment.