mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-10 08:35:01 +00:00
As discussed in https://github.com/jazzband/django-axes/issues/264 and https://github.com/jazzband/django-axes/issues/266. We need to install `mock` when testing against Python 2.7 because `mock` has been added to the standard lib only starting with Python 3.3.
4 lines
88 B
Python
4 lines
88 B
Python
try:
|
|
from unittest.mock import patch
|
|
except ImportError:
|
|
from mock import patch
|