summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-01-28 21:02:39 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-28 21:02:39 +0100
commitda18435177e1c68dd0dcd5577576d11fe4a3b342 (patch)
tree5c5416f8439518f9d412612c612c032fe542f68b /mirrors
parent54ecd257d0cf360ffc68c6a7875d205da4ceb17c (diff)
downloadarchweb-da18435177e1c68dd0dcd5577576d11fe4a3b342.tar.gz
archweb-da18435177e1c68dd0dcd5577576d11fe4a3b342.zip
switch to python3's buildin mock
Instead of using a python module use the build-in mock and remove the module from requirements.txt
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/tests/test_mirrorcheck.py2
-rw-r--r--mirrors/tests/test_mirrorresolv.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mirrors/tests/test_mirrorcheck.py b/mirrors/tests/test_mirrorcheck.py
index ad4e8d25..fd52fe67 100644
--- a/mirrors/tests/test_mirrorcheck.py
+++ b/mirrors/tests/test_mirrorcheck.py
@@ -1,6 +1,6 @@
-import mock
import time
+from unittest import mock
from urllib.error import HTTPError, URLError
diff --git a/mirrors/tests/test_mirrorresolv.py b/mirrors/tests/test_mirrorresolv.py
index 8b37e764..eb7f3e32 100644
--- a/mirrors/tests/test_mirrorresolv.py
+++ b/mirrors/tests/test_mirrorresolv.py
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
from django.test import TestCase
from django.core.management import call_command