Skip to content

Commit

Permalink
add six.moves suffix ignore to stop() as well as start()
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Jones committed Dec 21, 2017
1 parent 948e824 commit 7af9f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freezegun/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,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 mod_name.startswith(self.ignore) or mod_name.endswith('.six.moves'):
continue
elif (not hasattr(module, "__name__") or module.__name__ in ('datetime', 'time')):
continue
Expand Down

0 comments on commit 7af9f03

Please sign in to comment.