From f32872b3c102e7c30aaed78b128ddf8d6ef448c1 Mon Sep 17 00:00:00 2001
From: Jelle van der Waa <jelle@archlinux.org>
Date: Sat, 20 May 2023 14:41:18 +0200
Subject: [PATCH] Use unittest.mock when available on Python > 3.3

---
 test-requirements.txt | 2 +-
 tests/test_mocker.py  | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/test-requirements.txt b/test-requirements.txt
index 9df4c10..cdab309 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,5 +1,5 @@
 fixtures
-mock
+mock; python_version < '3.3'
 purl
 pytest
 sphinx
diff --git a/tests/test_mocker.py b/tests/test_mocker.py
index 8d015cd..7eff649 100644
--- a/tests/test_mocker.py
+++ b/tests/test_mocker.py
@@ -13,7 +13,10 @@
 import json
 import pickle
 
-import mock
+try:
+    from unittest import mock
+except ImportError:
+    import mock
 import requests
 
 import requests_mock
