Skip to content
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

Python3.13: TypeError: DocTestRunner.__record_outcome() missing 1 required positional argument: 'skips' #67

Open
artsiomkaltovich opened this issue Dec 21, 2024 · 0 comments

Comments

@artsiomkaltovich
Copy link

artsiomkaltovich commented Dec 21, 2024

Python 3.13 has changed the signature of the __record_outcome method and added a skips parameter https://github.com/python/cpython/blob/3.13/Lib/doctest.py#L1480 (as I understand, it calculates the number of skipped tests). This change breaks the following code: pytest-sphinx.py, line 498.

Could you find the time to address this issue? I’m happy to create a PR if it can be merged soon.

Thank you in advance!

artsiomkaltovich added a commit to artsiomkaltovich/zython that referenced this issue Dec 21, 2024
artsiomkaltovich added a commit to artsiomkaltovich/zython that referenced this issue Dec 21, 2024
* 0.5.0

* fixes

* add set.py

* Introduce the strict argument to the disjunctive constraint

* fix docs

* add abs function

* small test fix

* Add mathematical functions and enhance array indexing

- Introduce `exp`, `ln`, `log`, `log10`, `log2`, `sqrt`, and `product` functions.
- Update array indexing to require all indices for multidimensional arrays.
- Fix assertions in tests to reflect changes in array slicing behavior.

* Refactor type hints to use Union for function parameters

* Update task scheduling examples and expected outputs in documentation

* remove strict disjunctive sample as no one know, what the difference should we expect

* Add trigonometric functions

* Fix type hint for _generate_solution_class_and_field_names function

* test

* comment out hyperbolic functions as they cause an error in minizinc 2.6.0

* comment out hyperbolic functions to prevent errors in minizinc 2.6.0

* Update changelog to remove hyperbolic trigonometric functions from the list

* update doctest github action

* capitalize some docstrings for consistency

* use 3.12 in doctest twmr/pytest-sphinx#67
artsiomkaltovich added a commit to artsiomkaltovich/zython that referenced this issue Dec 21, 2024
* 0.5.0

* fixes

* add set.py

* Introduce the strict argument to the disjunctive constraint

* fix docs

* add abs function

* small test fix

* Add mathematical functions and enhance array indexing

- Introduce `exp`, `ln`, `log`, `log10`, `log2`, `sqrt`, and `product` functions.
- Update array indexing to require all indices for multidimensional arrays.
- Fix assertions in tests to reflect changes in array slicing behavior.

* Refactor type hints to use Union for function parameters

* Update task scheduling examples and expected outputs in documentation

* remove strict disjunctive sample as no one know, what the difference should we expect

* Add trigonometric functions

* Fix type hint for _generate_solution_class_and_field_names function

* test

* comment out hyperbolic functions as they cause an error in minizinc 2.6.0

* comment out hyperbolic functions to prevent errors in minizinc 2.6.0

* Update changelog to remove hyperbolic trigonometric functions from the list

* update doctest github action

* capitalize some docstrings for consistency

* use 3.12 in doctest twmr/pytest-sphinx#67
@artsiomkaltovich artsiomkaltovich changed the title TypeError: DocTestRunner.__record_outcome() missing 1 required positional argument: 'skips' Python3.13: TypeError: DocTestRunner.__record_outcome() missing 1 required positional argument: 'skips' Dec 23, 2024
ricardoV94 added a commit to maresb/pytensor that referenced this issue Feb 20, 2025
pytest-sphinx is not compatible with Python 3.13: twmr/pytest-sphinx#67
ricardoV94 added a commit to maresb/pytensor that referenced this issue Feb 20, 2025
pytest-sphinx is not compatible with Python 3.13: twmr/pytest-sphinx#67
ricardoV94 added a commit to pymc-devs/pytensor that referenced this issue Feb 20, 2025
pytest-sphinx is not compatible with Python 3.13: twmr/pytest-sphinx#67
Aarsh-Wankar pushed a commit to Aarsh-Wankar/pytensor that referenced this issue Feb 22, 2025
pytest-sphinx is not compatible with Python 3.13: twmr/pytest-sphinx#67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant