mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #264772 from thiagokokada/fix-icontract
python3Packages.icontract: fix build
This commit is contained in:
commit
9387dfcba3
|
@ -77,13 +77,17 @@ buildPythonPackage rec {
|
|||
"test_scheme_contract_is_satisfied_when_setting_arg"
|
||||
"test_scheme_contract_is_satisfied_within_chain"
|
||||
"test_scheme_errors_rewrite_message"
|
||||
# broken since pytest > 7.1.3
|
||||
"test_exception_hook"
|
||||
# assert errors
|
||||
"test_doctest"
|
||||
"test_no_violations"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# needs internet access
|
||||
"tests/test_runtime/test_offline.py"
|
||||
# depends on typeguard <4.0.0 for tests, but >=4.0.0 seems fine for runtime
|
||||
# https://github.com/life4/deal/blob/9be70fa1c5a0635880619b2cea83a9f6631eb236/pyproject.toml#L40
|
||||
"tests/test_testing.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "deal" ];
|
||||
|
|
|
@ -50,6 +50,13 @@ buildPythonPackage rec {
|
|||
# mypy decorator checks don't pass. For some reason mypy
|
||||
# doesn't check the python file provided in the test.
|
||||
"tests/test_mypy_decorators.py"
|
||||
# those tests seems to simply re-run some typeguard tests
|
||||
"tests/test_typeguard.py"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# RuntimeWarning: coroutine '*' was never awaited
|
||||
"-W" "ignore::RuntimeWarning"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "icontract" ];
|
||||
|
|
|
@ -54,8 +54,12 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
disabledTests = [
|
||||
# not compatible with python3.10
|
||||
"test_typed_dict"
|
||||
# AssertionError: 'type of argument "x" must be ' != 'None'
|
||||
"TestPrecondition::test_precondition_ok_and_typeguard_fails"
|
||||
# AttributeError: 'C' object has no attribute 'x'
|
||||
"TestInvariant::test_invariant_ok_and_typeguard_fails"
|
||||
# AttributeError: 'D' object has no attribute 'x'
|
||||
"TestInheritance::test_invariant_ok_and_typeguard_fails"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue