You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test suite seems to be broken. A lot of tests are in red. For example, test contracts defined in conftest.py produce warnings on newer versions of solc and that warning does not pass is_benign check.
All while tox passes tests on travis.ci somehow.
Example of failed pytest run. Command: python -m pytest -k test_providing_stdin
It's output:
=================================================================================testsessionstarts==================================================================================platformlinux--Python3.6.6, pytest-3.8.2, py-1.7.0, pluggy-0.7.1--/home/pepesza/code/py-solc/venv/bin/pythoncachedir: .pytest_cacherootdir: /home/pepesza/code/py-solc, inifile: pytest.inicollected58items/57deselectedtests/core/wrapper/test_solc_wrapper.py::test_providing_stdinFAILED [100%]
=======================================================================================FAILURES=======================================================================================_________________________________________________________________________________test_providing_stdin_________________________________________________________________________________FOO_SOURCE='pragma solidity ^0.4.17;\n\ncontract Foo {\n function Foo() public {}\n\n function return13() public pure returns (uint) {\n return 13;\n }\n}\n'deftest_providing_stdin(FOO_SOURCE):
output, err, _, _=solc_wrapper(stdin=FOO_SOURCE, bin=True)
assertoutputassert'Foo'inoutput>assertis_benign(err)
EassertFalseE+whereFalse=is_benign('<stdin>:4:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.\n function Foo() public {}\n ^----------------------^\n')
FOO_SOURCE='pragma solidity ^0.4.17;\n\ncontract Foo {\n function Foo() public {}\n\n function return13() public pure returns (uint) {\n return 13;\n }\n}\n'_=<subprocess.Popenobjectat0x7f1aa8150390>err='<stdin>:4:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.\n function Foo() public {}\n ^----------------------^\n'output='\n======= <stdin>:Foo =======\nBinary: \n6080604052348015600f57600080fd5b5060a18061001e6000396000f3006080604052600436...80910390f35b6000600d9050905600a165627a7a72305820222a1dc8029613612a0659d720a86492832454b7f50a2f689ce684cd93fa671b0029\n'tests/core/wrapper/test_solc_wrapper.py:38: AssertionError=======================================================================1failed, 57deselectedin0.07seconds========================================================================
The text was updated successfully, but these errors were encountered:
py-solc
Version: 3.2.0solc
Version: 0.4.25What was wrong?
Test suite seems to be broken. A lot of tests are in red. For example, test contracts defined in
conftest.py
produce warnings on newer versions ofsolc
and that warning does not passis_benign
check.All while
tox
passes tests on travis.ci somehow.Example of failed pytest run. Command:
python -m pytest -k test_providing_stdin
It's output:
The text was updated successfully, but these errors were encountered: