mirror of
https://github.com/django/django.git
synced 2025-12-09 19:08:06 +00:00
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
This commit is contained in:
parent
042b7350a0
commit
7aba69145d
49 changed files with 97 additions and 81 deletions
|
|
@ -437,16 +437,6 @@ if __name__ == "__main__":
|
|||
|
||||
options = parser.parse_args()
|
||||
|
||||
# mock is a required dependency
|
||||
try:
|
||||
from django.test import mock # NOQA
|
||||
except ImportError:
|
||||
print(
|
||||
"Please install test dependencies first: \n"
|
||||
"$ pip install -r requirements/py%s.txt" % sys.version_info.major
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
# Allow including a trailing slash on app_labels for tab completion convenience
|
||||
options.modules = [os.path.normpath(labels) for labels in options.modules]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue