question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.10.4: pytest is failing in three units

See original GitHub issue

I’m trying to package your module as an rpm package. So I’m using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I’m calling build with --no-isolation I’m using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

I’m usimg as input source autogenerated by github tar ball from v0.10.4 git tag.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kloczekcommented, Sep 18, 2022

Just testes 0.11.0 and all looks good now

.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.3, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/beartype-0.11.0, configfile: pytest.ini, testpaths: beartype_test
collected 257 items

beartype_test/a00_unit/a00_core/test_a00_package.py ..                                                                                                               [  0%]
beartype_test/a00_unit/a00_core/test_a90_typing.py .                                                                                                                 [  1%]
beartype_test/a00_unit/a10_data/hint/pep/sign/test_datapepsignset.py .                                                                                               [  1%]
beartype_test/a00_unit/a20_util/test_utilobject.py ..                                                                                                                [  2%]
beartype_test/a00_unit/a20_util/cache/test_utilcachecall.py ..                                                                                                       [  3%]
beartype_test/a00_unit/a20_util/cache/map/test_utilmapbig.py .                                                                                                       [  3%]
beartype_test/a00_unit/a20_util/cache/map/test_utilmaplru.py ...                                                                                                     [  4%]
beartype_test/a00_unit/a20_util/cache/pool/test_utilcachepool.py ..                                                                                                  [  5%]
beartype_test/a00_unit/a20_util/cache/pool/test_utilcachepoollistfixed.py ....                                                                                       [  7%]
beartype_test/a00_unit/a20_util/cache/pool/test_utilcachepoolobjecttyped.py ..                                                                                       [  7%]
beartype_test/a00_unit/a20_util/cls/test_utilclstest.py ...                                                                                                          [  8%]
beartype_test/a00_unit/a20_util/cls/pep/test_utilpep3119.py ..                                                                                                       [  9%]
beartype_test/a00_unit/a20_util/cls/pep/test_utilpep557.py .                                                                                                         [ 10%]
beartype_test/a00_unit/a20_util/error/test_utilerror.py .                                                                                                            [ 10%]
beartype_test/a00_unit/a20_util/func/test_utilfunccode.py .                                                                                                          [ 10%]
beartype_test/a00_unit/a20_util/func/test_utilfunccodeobj.py ..                                                                                                      [ 11%]
beartype_test/a00_unit/a20_util/func/test_utilfuncfile.py ..                                                                                                         [ 12%]
beartype_test/a00_unit/a20_util/func/test_utilfuncframe.py .                                                                                                         [ 12%]
beartype_test/a00_unit/a20_util/func/test_utilfuncget.py ..                                                                                                          [ 13%]
beartype_test/a00_unit/a20_util/func/test_utilfuncmake.py ..                                                                                                         [ 14%]
beartype_test/a00_unit/a20_util/func/test_utilfuncscope.py ...                                                                                                       [ 15%]
beartype_test/a00_unit/a20_util/func/test_utilfunctest.py .............                                                                                              [ 20%]
beartype_test/a00_unit/a20_util/func/test_utilfuncwrap.py .                                                                                                          [ 21%]
beartype_test/a00_unit/a20_util/func/arg/test_utilfuncargget.py .                                                                                                    [ 21%]
beartype_test/a00_unit/a20_util/func/arg/test_utilfuncargiter.py .                                                                                                   [ 21%]
beartype_test/a00_unit/a20_util/func/arg/test_utilfuncargtest.py ...                                                                                                 [ 22%]
beartype_test/a00_unit/a20_util/func/lib/test_utilbeartypefunc.py ..                                                                                                 [ 23%]
beartype_test/a00_unit/a20_util/func/pep/test_utilpep484func.py .                                                                                                    [ 24%]
beartype_test/a00_unit/a20_util/hint/a00_pep/test_a00_utilpepget.py .....                                                                                            [ 26%]
beartype_test/a00_unit/a20_util/hint/a00_pep/test_a90_utilpeptest.py .......                                                                                         [ 28%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/test_utilpep544.py .                                                                                           [ 29%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/test_utilpep557.py .                                                                                           [ 29%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/test_utilpep586.py .                                                                                           [ 29%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/test_utilpep593.py .                                                                                           [ 30%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/test_utilpep604.py .                                                                                           [ 30%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/pep484/test_utilpep484typevar.py .                                                                             [ 31%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/pep484585/test_utilpep484585.py .                                                                              [ 31%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/pep484585/test_utilpep484585callable.py .                                                                      [ 31%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/pep484585/test_utilpep484585generic.py ...                                                                     [ 33%]
beartype_test/a00_unit/a20_util/hint/a00_pep/proposal/pep484585/test_utilpep484585subclass.py .                                                                      [ 33%]
beartype_test/a00_unit/a20_util/hint/a10_nonpep/test_utilhintnonpeptest.py ...                                                                                       [ 34%]
beartype_test/a00_unit/a20_util/hint/a50_convert/test_utilconvcoerce.py ..                                                                                           [ 35%]
beartype_test/a00_unit/a20_util/hint/a50_convert/test_utilconvreduce.py .                                                                                            [ 35%]
beartype_test/a00_unit/a20_util/hint/a90_core/test_utilhintfactory.py .                                                                                              [ 36%]
beartype_test/a00_unit/a20_util/hint/a90_core/test_utilhinttest.py ...                                                                                               [ 37%]
beartype_test/a00_unit/a20_util/kind/test_utilkinddict.py ......                                                                                                     [ 39%]
beartype_test/a00_unit/a20_util/mod/test_utilmoddeprecate.py .                                                                                                       [ 40%]
beartype_test/a00_unit/a20_util/mod/test_utilmodget.py .                                                                                                             [ 40%]
beartype_test/a00_unit/a20_util/mod/test_utilmodimport.py ...                                                                                                        [ 41%]
beartype_test/a00_unit/a20_util/mod/test_utilmodtest.py ..                                                                                                           [ 42%]
beartype_test/a00_unit/a20_util/mod/lib/test_utiltyping.py .                                                                                                         [ 42%]
beartype_test/a00_unit/a20_util/os/test_utilostest.py ..                                                                                                             [ 43%]
beartype_test/a00_unit/a20_util/py/test_utilpyinterpreter.py .                                                                                                       [ 43%]
beartype_test/a00_unit/a20_util/py/test_utilpyword.py .                                                                                                              [ 44%]
beartype_test/a00_unit/a20_util/text/test_utiltextident.py .                                                                                                         [ 44%]
beartype_test/a00_unit/a20_util/text/test_utiltextjoin.py ..                                                                                                         [ 45%]
beartype_test/a00_unit/a20_util/text/test_utiltextlabel.py ..                                                                                                        [ 46%]
beartype_test/a00_unit/a20_util/text/test_utiltextmunge.py ....                                                                                                      [ 47%]
beartype_test/a00_unit/a20_util/text/test_utiltextrepr.py .                                                                                                          [ 48%]
beartype_test/a00_unit/a40_pep/test_pep484.py ....                                                                                                                   [ 49%]
beartype_test/a00_unit/a40_pep/test_pep484585.py ...                                                                                                                 [ 50%]
beartype_test/a00_unit/a40_pep/test_pep544.py ......                                                                                                                 [ 53%]
beartype_test/a00_unit/a40_pep/test_pep557.py .                                                                                                                      [ 53%]
beartype_test/a00_unit/a40_pep/test_pep561.py .                                                                                                                      [ 54%]
beartype_test/a00_unit/a40_pep/test_pep585.py ...                                                                                                                    [ 55%]
beartype_test/a00_unit/a40_pep/test_pep589.py .                                                                                                                      [ 55%]
beartype_test/a00_unit/a40_pep/test_pep593.py ...                                                                                                                    [ 56%]
beartype_test/a00_unit/a60_api/test_api_cave.py .....                                                                                                                [ 58%]
beartype_test/a00_unit/a60_api/test_api_meta.py .                                                                                                                    [ 59%]
beartype_test/a00_unit/a60_api/conf/test_conf.py ..                                                                                                                  [ 59%]
beartype_test/a00_unit/a60_api/door/test_door_func.py .                                                                                                              [ 60%]
beartype_test/a00_unit/a60_api/door/test_door_typehint.py .............                                                                                              [ 65%]
beartype_test/a00_unit/a60_api/peps/test_pep563.py .......                                                                                                           [ 68%]
beartype_test/a00_unit/a60_api/typing/test_typingpep544.py .......s                                                                                                  [ 71%]
beartype_test/a00_unit/a60_api/vale/_core/test_valecore.py ..                                                                                                        [ 71%]
beartype_test/a00_unit/a60_api/vale/_is/test_valeis.py ...                                                                                                           [ 73%]
beartype_test/a00_unit/a60_api/vale/_is/test_valeiscls.py ....                                                                                                       [ 74%]
beartype_test/a00_unit/a60_api/vale/_is/test_valeisobj.py ..                                                                                                         [ 75%]
beartype_test/a00_unit/a60_api/vale/_is/test_valeisoper.py ..                                                                                                        [ 76%]
beartype_test/a00_unit/a60_api/vale/_util/test_valeutiltext.py .                                                                                                     [ 76%]
beartype_test/a00_unit/a80_check/a00_expr/test_exprcode.py .                                                                                                         [ 77%]
beartype_test/a00_unit/a80_check/a00_expr/test_exprscope.py .....                                                                                                    [ 78%]
beartype_test/a00_unit/a80_check/a90_door/test_checkdoor.py ......                                                                                                   [ 81%]
beartype_test/a00_unit/a90_decor/test_decorcall.py .                                                                                                                 [ 81%]
beartype_test/a00_unit/a90_decor/test_decorconf.py ....                                                                                                              [ 83%]
beartype_test/a00_unit/a90_decor/test_decorwrappee.py ....                                                                                                           [ 84%]
beartype_test/a00_unit/a90_decor/test_decorwrapper.py .                                                                                                              [ 85%]
beartype_test/a00_unit/a90_decor/a00_cache/test_cachetype.py ..                                                                                                      [ 85%]
beartype_test/a00_unit/a90_decor/a20_error/test_errormain.py .                                                                                                       [ 86%]
beartype_test/a00_unit/a90_decor/a20_error/test_errortext.py .                                                                                                       [ 86%]
beartype_test/a00_unit/a90_decor/a40_code/test_codeargkind.py ......                                                                                                 [ 89%]
beartype_test/a00_unit/a90_decor/a40_code/test_codenoop.py ......                                                                                                    [ 91%]
beartype_test/a00_unit/a90_decor/a40_code/nonpep/test_codemypy.py .                                                                                                  [ 91%]
beartype_test/a00_unit/a90_decor/a40_code/nonpep/test_codenonpep.py .........                                                                                        [ 95%]
beartype_test/a00_unit/a90_decor/a40_code/pep/test_coderef.py .....                                                                                                  [ 97%]
beartype_test/a00_unit/a90_decor/a60_main/test_codemain.py .                                                                                                         [ 97%]
beartype_test/a90_func/doc/test_docreadme.py .                                                                                                                       [ 98%]
beartype_test/a90_func/lib/sphinx/test_beartype_in_sphinx.py .                                                                                                       [ 98%]
beartype_test/a90_func/lib/sphinx/test_sphinx_build.py .                                                                                                             [ 98%]
beartype_test/a90_func/package/test_package_import.py .                                                                                                              [ 99%]
beartype_test/a90_func/pep/test_pep561_static.py .s                                                                                                                  [100%]

========================================================================= short test summary info ==========================================================================
SKIPPED [1] beartype_test/a00_unit/a60_api/typing/test_typingpep544.py:439: Python 3.8.13 < 3.9.0.
SKIPPED [1] beartype_test/a90_func/pep/test_pep561_static.py:149: Command "pyright" not found.
===================================================================== 255 passed, 2 skipped in 26.33s ======================================================================

Thank you 👍

0reactions
kloczekcommented, Sep 18, 2022

(blush) 😋

Read more comments on GitHub >

github_iconTop Results From Across the Web

pytest Documentation - Read the Docs
After it finishes, pytest then shows a failure report ... A pytest plugin for running unit tests within an ansible collection pytest-antilru.
Read more >
PyTest Fails to Discover if VSCode believes code is bad even ...
Expected behaviour. Expected: Find all unit tests and run them regardless of if VSCode thinks they work or not. Actual: Test discovery fails...
Read more >
Changelog — pytest documentation
Fixes a crash during a failed teardown in unittest TestCases with ... failed for 2 values: E Index | Obtained | Expected E...
Read more >
Pytest -m paging fails, yet get correct validation code - MongoDB
this issue seems to be happening with all the pytests… pytest -m connection, for example, gives me nearly same error messages as above....
Read more >
How to make pytest return failure if a minimum number of tests ...
You can add a custom hook impl and count the amount of passed tests. After the test run finishes, check the counter and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found