Skip to content

Commit

Permalink
Merge pull request #172 from moto-timo/try-import-unittest-mock
Browse files Browse the repository at this point in the history
test_memcache.py: try import unittest.mock
  • Loading branch information
linsomniac authored Apr 15, 2023
2 parents d5fb419 + 44c5317 commit 8ded8c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import unittest
import zlib

import mock
try:
import unittest.mock as mock
except ImportError:
import mock

from memcache import Client, _Host, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH # noqa: H301
from .utils import captured_stderr
Expand Down

0 comments on commit 8ded8c3

Please sign in to comment.