py-substrate-interface: Failing tests?
It seems that the latest release have tests related to Balances transfer failing (in addition to the mpz already reported)
============================================================================================================= short test summary info ==============================================================================================================
FAILED test/test_create_extrinsics.py::CreateExtrinsicsTestCase::test_create_extrinsic_bytes_signature - ValueError: Call function 'Balances.transfer' not found
FAILED test/test_create_extrinsics.py::CreateExtrinsicsTestCase::test_create_extrinsic_metadata_v14 - ValueError: Call function 'Balances.transfer' not found
FAILED test/test_create_extrinsics.py::CreateExtrinsicsTestCase::test_create_mortal_extrinsic - ValueError: Call function 'Balances.transfer' not found
FAILED test/test_create_extrinsics.py::CreateExtrinsicsTestCase::test_create_multisig_extrinsic - ValueError: Call function 'Balances.transfer' not found
FAILED test/test_create_extrinsics.py::CreateExtrinsicsTestCase::test_payment_info - ValueError: Call function 'Balances.transfer' not found
FAILED test/test_keypair.py::KeyPairTestCase::test_create_ecdsa_keypair_mnemonic - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_create_ecdsa_keypair_uri - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_ecdsa - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_invalid_signature_ecdsa - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_public_ethereum_address - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_type_registry.py::AutodetectAddressTypeTestCase::test_eth_address - AttributeError: 'mpz' object has no attribute 'to_bytes'
==================================================================================================== 11 failed, 288 passed in 420.59s (0:07:00) ============================
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 16 (12 by maintainers)
I also experience this sometimes and I suspect it is a race condition in the subscription code. True async support is on its way in the next major release, so for now it can be ignored. Perhaps it’s best to remove the test as it’s not 100% reliable now.
I created a new release containing both fixes: https://github.com/polkascan/py-substrate-interface/releases/tag/v1.7.6