-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.4: pytest is failing because missing context
fixture
#440
Comments
After deselecting units causing errors there are saome pytest warnings ============================================================================= warnings summary =============================================================================
tests/bugfixes/nosetests/test_430_respect_timeout.py::test_read_timeout
/usr/lib/python3.8/site-packages/_pytest/threadexception.py:75: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-1004
Traceback (most recent call last):
File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/tkloczko/rpmbuild/BUILDROOT/python-httpretty-1.1.4-3.fc35.x86_64/usr/lib/python3.8/site-packages/httpretty/core.py", line 1133, in fill_filekind
fk.write(utf8(item) + b'\n')
ValueError: write to closed file
warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))
tests/functional/test_urllib2.py::test_httpretty_should_allow_forcing_headers_urllib2
/home/tkloczko/rpmbuild/BUILDROOT/python-httpretty-1.1.4-3.fc35.x86_64/usr/lib/python3.8/site-packages/httpretty/core.py:1034: UserWarning: HTTPretty got to register the Content-Length header with "'35a'" which is not a number
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:355: no redis server available for test
SKIPPED [1] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:355: Skipped
======================================================= 11142 passed, 2 skipped, 10 deselected, 2 warnings in 38.92s =======================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'. |
Duplicated of #449. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to package your module as an rpm package.
As in build procedure I'm executing pytest based test suite I have errores about missing
context
fixture.Cannot figure out which one modole provides it.
May I ask for some help?
The text was updated successfully, but these errors were encountered: