6.0: test failures with Python 3.11
When running the test suite against Python 3.11, I'm seeing the following test failures:
$ pytest
========================================================= test session starts =========================================================
platform linux -- Python 3.11.12, pytest-8.3.5, pluggy-1.5.0
rootdir: /tmp/public
configfile: pyproject.toml
collected 55 items
docs/using.rst .............................FF [ 56%]
tests/test_modules.py ......x [ 69%]
tests/test_private.py .... [ 76%]
tests/test_public.py ............. [100%]
============================================================== FAILURES ===============================================================
_____________________________________________________ using.rst line=258 column=1 _____________________________________________________
Example at /tmp/public/docs/using.rst, line 258, column 1 did not evaluate as expected:
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.11/doctest.py", line 1355, in __run
exec(compile(example.source, filename, "single",
File "<doctest /tmp/public/docs/using.rst[0]>", line 1, in <module>
example = import_example('popall_example.py')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/public/conftest.py", line 60, in import_example
path = files() / 'docs' / filename
^^^^^^^
TypeError: files() missing 1 required positional argument: 'package'
using.rst:258: SybilFailure
_____________________________________________________ using.rst line=262 column=1 _____________________________________________________
Example at /tmp/public/docs/using.rst, line 262, column 1 did not evaluate as expected:
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.11/doctest.py", line 1355, in __run
exec(compile(example.source, filename, "single",
File "<doctest /tmp/public/docs/using.rst[0]>", line 1, in <module>
example.__all__
^^^^^^^
NameError: name 'example' is not defined
using.rst:262: SybilFailure
======================================================= short test summary info =======================================================
FAILED docs/using.rst::line:258,column:1
FAILED docs/using.rst::line:262,column:1
=============================================== 2 failed, 52 passed, 1 xfailed in 0.08s ===============================================
Note that in the CI / hatch environments, all the environments such as hatch-test.py3.11 are actually running against Python 3.12.