diff options
author | Joe Gordon <jogo@users.noreply.github.com> | 2023-02-06 15:23:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 15:23:01 -0800 |
commit | 78f27508ffcbc1b9cd0a06e05429630450c47fa6 (patch) | |
tree | 8423cfc6866896ecb0150ef48aaba89f9a1f7d25 | |
parent | b657f27f98bd14850a3736c62a244751c7b4c780 (diff) | |
parent | a357ead75ca08b93e353b89fb566abc5ee9074d9 (diff) | |
download | pymemcache-78f27508ffcbc1b9cd0a06e05429630450c47fa6.tar.gz |
Merge pull request #480 from misuzu/patch-1
fix test serde failure on 32-bit platforms
-rw-r--r-- | README.rst | 1 | ||||
-rw-r--r-- | pymemcache/test/test_serde.py | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -137,6 +137,7 @@ Credits * `Hervé Beraud <https://github.com/4383>`_ * `Martin Jørgensen <https://github.com/martinnj>`_ * `Matej Spiller Muys <https://github.com/matejsp>`_ +* `misuzu <https://github.com/misuzu>`_ We're Hiring! ============= diff --git a/pymemcache/test/test_serde.py b/pymemcache/test/test_serde.py index cb92271..d9db44f 100644 --- a/pymemcache/test/test_serde.py +++ b/pymemcache/test/test_serde.py @@ -12,7 +12,6 @@ from pymemcache.serde import ( ) import pytest import pickle -import sys import zlib @@ -128,7 +127,7 @@ def test_compressed_complex(serde): check(serde, "£ $ €" * 10, FLAG_TEXT | FLAG_COMPRESSED) # test_int, doesn't make sense to compress - check(serde, sys.maxsize, FLAG_INTEGER) + check(serde, 9223372036854775807, FLAG_INTEGER) # test_pickleable check( @@ -144,4 +143,4 @@ def test_compressed_complex(serde): # test_subtype # Subclass of a native type will be restored as the same type - check(serde, CustomInt(sys.maxsize), FLAG_PICKLE | FLAG_COMPRESSED) + check(serde, CustomInt(9223372036854775807), FLAG_PICKLE | FLAG_COMPRESSED) |