dask / dask/distributed

32-bit: test_sizeof_error[10-Valuer-error-larger than] fails

Open
#7,175 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

**Describe the issue**:

While packaging distributed for openSUSE Tumbleweed 32-bit, `test_sizeof_error[10-ValueError-larger than]` fails.

```
cac9eab8997b:/distributed-2022.10.0 # pytest distributed/tests/test_utils_test.py -k sizeof_error
======================================================= test session starts =======================================================
platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /distributed-2022.10.0, configfile: setup.cfg
plugins: timeout-2.1.0
timeout: 300.0s
timeout method: thread
timeout func_only: False
collected 74 items / 70 deselected / 4 selected

distributed/tests/test_utils_test.py::test_sizeof_error[12345.0-TypeError-Expected integer] PASSED [ 25%]
distributed/tests/test_utils_test.py::test_sizeof_error[-1-ValueError-larger than] PASSED [ 50%]
distributed/tests/test_utils_test.py::test_sizeof_error[0-ValueError-larger than] PASSED [ 75%]
distributed/tests/test_utils_test.py::test_sizeof_error[10-ValueError-larger than] FAILED [100%]

============================================================ FAILURES =============================================================
__________________________________________ test_sizeof_error[10-ValueError-larger than] ___________________________________________

input = 10, exc = , msg = 'larger than'

@pytest.mark.parametrize(
"input, exc, msg",
[
(12345.0, TypeError, "Expected integer"),
(-1, ValueError, "larger than"),
(0, ValueError, "larger than"),
(10, ValueError, "larger than"),
],
)
def test_sizeof_error(input, exc, msg):
> with pytest.raises(exc, match=msg):
E Failed: DID NOT RAISE

distributed/tests/test_utils_test.py:1048: Failed
====================================================== slowest 20 durations =======================================================

(12 durations < 0.005s hidden. Use -vv to show these durations.)
===================================================== short test summary info =====================================================
FAILED distributed/tests/test_utils_test.py::test_sizeof_error[10-ValueError-larger than] - Failed: DID NOT RAISE

**Minimal Complete Verifiable Example**:

```shell
docker run -it --platform linux/386 opensuse/tumbleweed
```

```shell
zypper in tar gzip wget python310-pip python310-numpy python310-pytest python310-pytest-timeout
pip install 'dask[distributed]==2022.10.0'
wget https://github.com/dask/distributed/archive/refs/tags/2022.10.0.tar.gz
tar xf 2022.10.0.tar.gz
cd distributed-2022.10.0/
export PYTHONPATH=":x"
pytest distributed/tests/test_utils_test.py -k sizeof_error
```

**Environment**:

- Dask version: 2022.10.0
- Python version: 3.10.7
- Operating System: openSUSE Tumbleweed "i586"
- Install method (conda, pip, source): source/rpm OR pip

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.