ethereum / ethereum/eth-utils

test_type_inference test fails recently

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
335
Forks
167
PR merge metrics
No merged PRs in 30d

Description

### What happened?

It fails during nixpkgs build:

```
error: Cannot build '/nix/store/579dqac45818c4w3fqfhs2j4wmhjzfqd-python3.13-eth-utils-6.0.0.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/abjiwsb57asr8i7gx023ljg99hx19sln-python3.13-eth-utils-6.0.0
/nix/store/jw17za4xzhb302xyk1ixzyv02ybspcfa-python3.13-eth-utils-6.0.0-dist
Last 25 log lines:
> ? --------- ---------
> + fixtures/mypy/to_set_decorator.py:12: note: Revealed type is "set[int]"
> Success: no issues found in 1 source file
> FAILED tests/core/functional-utils/test_type_inference.py::test_type_inference[fixtures/mypy/to_dict_decorator.py-fixtures/mypy/to_dict_decorator.py:12: note: Revealed type is "builtins.dict[builtins.int, builtins.int]"\nSuccess: no issues found in 1 source file\n] - AssertionError:
> assert 'fixtures/myp...source file\n' == 'fixtures/myp...source file\n'
>
> - fixtures/mypy/to_dict_decorator.py:12: note: Revealed type is "builtins.dict[builtins.int, builtins.int]"
> ? --------- --------- ---------
> + fixtures/mypy/to_dict_decorator.py:12: note: Revealed type is "dict[int, int]"
> Success: no issues found in 1 source file
> FAILED tests/core/functional-utils/test_type_inference.py::test_type_inference[fixtures/mypy/to_ordered_dict_decorator.py-fixtures/mypy/to_ordered_dict_decorator.py:12: note: Revealed type is "collections.OrderedDict[builtins.int, builtins.int]"\nSuccess: no issues found in 1 source file\n] - AssertionError:
> assert 'fixtures/myp...source file\n' == 'fixtures/myp...source file\n'
>
> - fixtures/mypy/to_ordered_dict_decorator.py:12: note: Revealed type is "collections.OrderedDict[builtins.int, builtins.int]"
> ? --------- ---------
> + fixtures/mypy/to_ordered_dict_decorator.py:12: note: Revealed type is "collections.OrderedDict[int, int]"
> Success: no issues found in 1 source file
> FAILED tests/core/functional-utils/test_type_inference.py::test_type_inference[fixtures/mypy/apply_to_return_value_decorator.py-fixtures/mypy/apply_to_return_value_decorator.py:16: note: Revealed type is "builtins.list[builtins.int]"\nSuccess: no issues found in 1 source file\n] - AssertionError:
> assert 'fixtures/myp...source file\n' == 'fixtures/myp...source file\n'
>
> - fixtures/mypy/apply_to_return_value_decorator.py:16: note: Revealed type is "builtins.list[builtins.int]"
> ? --------- ---------
> + fixtures/mypy/apply_to_return_value_decorator.py:16: note: Revealed type is "list[int]"
> Success: no issues found in 1 source file
> ================= 6 failed, 782 passed, 1 deselected in 6.03s ==================
For full logs, run:
nix log /nix/store/579dqac45818c4w3fqfhs2j4wmhjzfqd-python3.13-eth-utils-6.0.0.drv
```

Fixed with a simple patch in https://github.com/NixOS/nixpkgs/pull/523924

Not sure where this started, probably related to the pytests?

### Fill this section in if you know how this could or should be fixed

_No response_

### eth-utils Version

_No response_

### Python Version

_No response_

### Operating System

_No response_

### Output from `pip freeze`

```shell

```

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.