You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2022/08/26 13:35:13 UTC

[GitHub] [buildstream] gtristan opened a new issue, #1744: Cannot directly invoke pytest

gtristan opened a new issue, #1744:
URL: https://github.com/apache/buildstream/issues/1744

   As documented in the hacking materials: https://docs.buildstream.build/master/hacking/using_the_testsuite.html#running-tests:
   
   > While using `tox` is practical for developers running tests in more predictable execution environments, it is still possible to execute the test suite against a specific installation environment using pytest directly
   
   This is especially a requirement for distro packaging in order to run our test suite against the installed dependencies instead of relying on having internet access in order to run tests.
   
   The `--integration` tests unfortunately cannot be run at all under these conditions at all but we should be able to run tests with `pytest` directly given all the dependencies are already present.
   
   This is no longer working, we get the following error for every test:
   
   ```
   _______________________________________________________ ERROR at teardown of test_artifact_cache_with_missing_capabilities_is_skipped ________________________________________________________
   
   default_thread_number = 1
   
       @pytest.fixture(autouse=True)
       def thread_check(default_thread_number):
           assert has_no_unexpected_background_threads(default_thread_number)
           yield
   >       assert has_no_unexpected_background_threads(default_thread_number)
   E       AssertionError
   
   ../../.local/lib/python3.9/site-packages/buildstream/_testing/_fixtures.py:57: AssertionError
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org