Skip to content

Commit

Permalink
Merge a906e24 into 894fe1f
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed May 29, 2017
2 parents 894fe1f + a906e24 commit 7fefc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freezegun/api.py
Expand Up @@ -414,7 +414,7 @@ def start(self):
for mod_name, module in list(sys.modules.items()):
if mod_name is None or module is None:
continue
elif mod_name.startswith(self.ignore):
elif any(map(mod_name.startswith, self.ignore)):
continue
elif (not hasattr(module, "__name__") or module.__name__ in ('datetime', 'time')):
continue
Expand Down Expand Up @@ -463,7 +463,7 @@ def stop(self):
module = sys.modules.get(mod_name, None)
if mod_name is None or module is None:
continue
elif mod_name.startswith(self.ignore):
elif any(map(mod_name.startswith, self.ignore)):
continue
elif (not hasattr(module, "__name__") or module.__name__ in ('datetime', 'time')):
continue
Expand Down

0 comments on commit 7fefc46

Please sign in to comment.