Skip to content

Commit

Permalink
Use unittest.mock when available on Python > 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly authored and jamielennox committed Jun 8, 2023
1 parent fc19034 commit dc806b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fixtures
mock
mock; python_version < '3.3'
purl
pytest
sphinx
Expand Down
5 changes: 4 additions & 1 deletion tests/test_mocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import json
import pickle

import mock
try:
from unittest import mock
except ImportError:
import mock
import requests

import requests_mock
Expand Down

0 comments on commit dc806b3

Please sign in to comment.