Skip to content

Commit 8e49352

Browse files
committed
DOC: add a note for how to run nose-based tests on Python 3.10+
1 parent 718bf83 commit 8e49352

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/developing/testing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ Answer Testing
162162
an `older version of this documentation <https://yt-project.org/docs/4.0.0/developing/testing.html#answer-testing>`_
163163
decribes how the ``nose`` tests work.
164164

165+
.. note::
166+
Given that nose never had support for Python 3.10 (which as of yt 4.4 is our
167+
oldest supported version), it is necessary to patch it to get tests running.
168+
This is the command we run on CI to this end
169+
``find .venv/lib/python3.10/site-packages/nose -name '*.py' -exec sed -i -e s/collections.Callable/collections.abc.Callable/g '{}' ';'``
170+
165171
What Do Answer Tests Do
166172
^^^^^^^^^^^^^^^^^^^^^^^
167173

0 commit comments

Comments
 (0)