Skip to content

Commit

Permalink
DOC: add a note for how to run nose-based tests on Python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Sep 18, 2024
1 parent d21488e commit ab645ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/source/developing/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ Answer Testing
an `older version of this documentation <https://yt-project.org/docs/4.0.0/developing/testing.html#answer-testing>`_
decribes how the ``nose`` tests work.

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

What Do Answer Tests Do
^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit ab645ca

Please sign in to comment.