summaryrefslogtreecommitdiff
path: root/pymemcache/test/test_integration.py
diff options
context:
space:
mode:
authorJoe Gordon <jogo@pinterest.com>2021-05-27 09:53:42 -0700
committerJoe Gordon <jogo@pinterest.com>2021-07-20 11:46:07 -0700
commit00f3dd5edbb208c17e096ae858ac9f181c1c144a (patch)
treed26f573973e56927a29d796da6313148644848ee /pymemcache/test/test_integration.py
parent0bf1baa4f539dedf8e4e4b2e48f8da5d66ed57b5 (diff)
downloadpymemcache-00f3dd5edbb208c17e096ae858ac9f181c1c144a.tar.gz
Remove PY2 specific imports and tests
* future was needed for some python 2 specific tests * use mock from unittest.mock instead of the 3rd party mock library
Diffstat (limited to 'pymemcache/test/test_integration.py')
-rw-r--r--pymemcache/test/test_integration.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/pymemcache/test/test_integration.py b/pymemcache/test/test_integration.py
index 8dde849..8ca3ba7 100644
--- a/pymemcache/test/test_integration.py
+++ b/pymemcache/test/test_integration.py
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from builtins import bytes as newbytes
-
from collections import defaultdict
import json
import pytest
@@ -61,18 +59,6 @@ def test_get_set(client_class, host, port, socket_module):
@pytest.mark.integration()
-def test_get_set_newbytes(client_class, host, port, socket_module):
- client = client_class((host, port), socket_module=socket_module)
- client.flush_all()
-
- key = newbytes(b'key3')
- value = b'value3'
- key2 = newbytes(b'key4')
- value2 = b'value4'
- get_set_helper(client, key, value, key2, value2)
-
-
-@pytest.mark.integration()
def test_get_set_unicode_key(client_class, host, port, socket_module):
client = client_class((host, port), socket_module=socket_module,
allow_unicode_keys=True)