Skip to content

Commit

Permalink
test: fix assert() and types
Browse files Browse the repository at this point in the history
Part of #82
  • Loading branch information
ligurio committed Jan 17, 2022
1 parent 2e1c60d commit db8e6a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/internal/memcached_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ def _read_and_parse_response(self):
assert(magic == MAGIC['response'])
if status == STATUS['OK']:
assert(ext_len == ext_lenv)
assert(((key_lenv > 0 or key_lenv is None) and key_len > 0) or key_len == 0)
assert(((val_lenv > 0 or val_lenv is None) and val_len > 0) or val_len == 0)
assert(((key_lenv is None or key_lenv > 0) and key_len > 0) or key_len == 0)
assert(((val_lenv is None or val_lenv > 0) and val_len > 0) or val_len == 0)
else:
assert(val_len > 0)

Expand Down
2 changes: 1 addition & 1 deletion test/text/multiversioning.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
mc_client = MemcachedTextConnection('localhost', port)

buf_size = 256 * 1024
buf = "0123456789abcdef" * (buf_size / 16)
buf = "0123456789abcdef" * int(buf_size / 16)
buf_upper = buf.upper()

memcached1 = mc_client
Expand Down

0 comments on commit db8e6a9

Please sign in to comment.