diff options
author | Stanislav Levin <31205609+stanislavlevin@users.noreply.github.com> | 2019-02-21 12:04:59 +0300 |
---|---|---|
committer | Taras Voinarovskyi <voyn1991@gmail.com> | 2019-02-21 11:04:59 +0200 |
commit | 03664ebe9ed8bc965391f925d50219eea4d6ac57 (patch) | |
tree | 42e0e2d94a7b9d42da250133434b7a31fe546d2a /kafka/errors.py | |
parent | eed59ba3b3c8800859572db046f36b5d8bd66487 (diff) | |
download | kafka-python-03664ebe9ed8bc965391f925d50219eea4d6ac57.tar.gz |
Fix test_legacy_correct_metadata_response on x86 arch (#1718)
The problem is that the type of required operation result is
"long".
```
>>> type(278251978 & 0xffffffff)
<type 'long'>
```
However, by default "format" method uses __format__():
```
>>> (278251978 & 0xffffffff).__format__('')
'278251978'
```
So, let's compare things using the same engine:
```
>>> "{!r}".format(278251978 & 0xffffffff)
'278251978L'
```
Fixes: https://github.com/dpkp/kafka-python/issues/1717
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Diffstat (limited to 'kafka/errors.py')
0 files changed, 0 insertions, 0 deletions