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
Note
The test package is meant for internal use by Python only. It is documented for the benefit of the core developers of Python. Any use of this package outside of Python’s standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python.
======================================================================
ERROR: blog.tests (unittest.loader._FailedTest.blog.tests)
----------------------------------------------------------------------
ImportError: Failed to import test module: blog.tests
Traceback (most recent call last):
File "/Users/mark/.local/share/uv/python/cpython-3.12.7-macos-aarch64-none/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mark/.local/share/uv/python/cpython-3.12.7-macos-aarch64-none/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
File "/Users/mark/dev/djangoproject.com/blog/tests.py", line 2, in<module>
from test.support import captured_stderr
ModuleNotFoundError: No module named 'test'
In pytest there's a fixture for stderr, but not sure on the solution here.
The text was updated successfully, but these errors were encountered:
Having recently switched to using
uv
, my version of python 3.12 doesn't come with thetest
module.As stated at the top of the docs
The blog tests import from
test
;So running
tox
on my machine results in;In pytest there's a fixture for stderr, but not sure on the solution here.
The text was updated successfully, but these errors were encountered: