-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
This is a dumping ground for build or test failures encountered. Not nearly as systematic as Nuitka/Nuitka#522 because I cant use OBS due to #164 , but I hope to resolve that soon.
All tests are run with pytest as an external import unless otherwise noted. I am focusing on core compiled libraries, as they are most likely to fail silently, and a few other CLI deps of mine.
Upstream rejected solutions:
- cmd2 Allow readline.__file__ to be missing python-cmd2/cmd2#802 / Gracefully degrade when loading libreadline fails python-cmd2/cmd2#807 They even deleted three of my comments explaining the problem to them, and then deleting another two comments, one which was merely noting that they deleted my comments.
Build & test tips
- Click
pytest.main(['-v', '/path/to/Click-7.0/tests/', '-k', 'not test_cli_as_module']) - pygit2, but incompatible with
pyrsistentStatic symbol moduleinit clashes with pyrsistent and evdev libgit2/pygit2#951 -
PyYAMLneeds Cython pre-installed in order to build the DSO, and running test suite requires being in the project root dir, and runningpytest.main(['-v', './tests/lib3'])passes all tests.
Upstream failures
-
ruamel.yaml.clibbuilds ok, but getting the core tests passing is a bit finicky, and some fail only becauseruamel.yaml.mainuses__file__, raised as https://bitbucket.org/ruamel/yaml/issues/324/dependency-on-__file__ . Most usage is unlikely to be effected as this is the CLI of ruamel.yaml -
toolz/cytoolz__file__Ignore missing __file__ pytoolz/toolz#476 -
decoratorUse of __file__ breaks PyOxidizer micheles/decorator#73 (merged) -
httpbinUse importlib.resources instead of __file__ postmanlabs/httpbin#584 -
Django, https://code.djangoproject.com/ticket/30950 - note installation of Django breaks pytest ifpytest-webtestorpytest-django(or other similar plugins) is in thesys.path -
plyAvoid __file__ dabeaz/ply#216 effectingpycparserAvoid __file__ eliben/pycparser#355 , also effectingcffiin the built binary (but not in the packaging rule stages)cffialso fails because it needsPython.h - cytoolz
tlz._build_tlzuses__file__Ignore missing __file__ pytoolz/toolz#476 -
yaspin- fixed on master -
orderedmultidict- Regression with PyInstaller (1.0.1 compared to 1.0) gruns/orderedmultidict#25, pin to<1.0.1to avoid breakage -
kombuandcell(andcl) Avoid use of __file__ celery/kombu#1121 / Avoid use of __file__ auvipy/cell#21 -
boltonsAvoid use of __file__ mahmoud/boltons#229 -
hypothesisAvoid use of __file__ HypothesisWorks/hypothesis#2196 (released) - docker compose Avoid use of __file__ docker/compose#7011
- pycountry (all below are
__file__to be raised upstream) - python-whois
- httplib2 (similar to certifi problem)
-
BabelReplace __file__ with newer APIs python-babel/babel#674 - pytz
- jsonschema
- tinycss2
- pyx
- pyglet
- netaddr Avoid use of __file__ netaddr/netaddr#188
Known failures
- psutil tests mostly fail because of the use
sys.executable -c. Using import hooks to add__file__helps all tests pass.pytest.main(['-v', '/path/to/psutil/tests', '-k', 'not (test_process or TestProcessUtils or TestScripts or TestTerminatedProcessLeaks)'])removes most of those.
[ ] coverage has lots of__file__problems, and likely too entrenched to be fixed any time soon. And test failures due to use ofsys.executable -c '..'
Unknown failures
-
peeweeneeds to be tested usingruntests.pyin the project root, and it fails onlytests.fields.TestTimestampField, in what seems to be a timezone offset problem as the day field is off by one. Need to retest locally with CPython directly. -
requests, after hacking around certifi, and even gettingcryptographyextensions working(c.f. cryptography modules not built due to PEP 517 #170),test_https_warningsstill fails and 2 of 4 of the "test_errors" failpytest.main(['-v', '/path/to/requests-2.22.0/tests/', '-k', 'not TestTimeout and not test_errors and not test_proxy_error'])is my current recipe. fixturehttpbin_ca_bundle = Noneis probably the problem - something is probably wrong with myhttpbin. -
geventtests fail to get collected due to use ofsys.executable -c; need to get its greentest running under PyOxidizer to evaluate properly -
lz4had one failuretest_roundtrip_1[data1-4-True-True-True-0-store_size0], and then finished at 37% -
blist, errorsNameError: name 'cmp' is not definedwhen run under pytest. Need to retest with unittest, as it is passing at https://build.opensuse.org/package/show/devel:languages:python/python-blist -
aiodnsone failuretest_query_a_bad -
aiohttp[speedups]tests use__file__, but there are also a four other failures, mostly related to network responses.test_fingerprint_mismatch,test_aiohttp_request_ctx_manager_not_found,test_recv_protocol_error[pyloop],test_constructor[pyloop],TestCookieJarSafe.test_expires,TestCookieJarSafe.test_max_age - Flask - only three tests fail:
test_scriptinfofails but looks due to test runner path fiddling,test_main_module_pathsandtest_aborting. (This looks good to enough to say that PyOxidizer is Flask compatible.) - pycares - 9 quite significant failures
OK
- PySocks
- idna
- persistent
- multidict
- msgpack
- cmarkgfm
- yarl
- cChardet
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels