-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: device_put_p kwargs * test: add jax ignore * docs: fix np 2.0 docs change * docs: skip tests in Windows until fixed numpy 2.0+ Signed-off-by: nstarman <nstarman@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
"""Doctest configuration.""" | ||
|
||
from __future__ import annotations | ||
|
||
import platform | ||
from doctest import ELLIPSIS, NORMALIZE_WHITESPACE | ||
|
||
from sybil import Sybil | ||
from sybil.parsers.rest import DocTestParser, PythonCodeBlockParser, SkipParser | ||
|
||
# TODO: stop skipping doctests on Windows when there is uniform support for | ||
# numpy 2.0+ scalar repr. On windows it is printed as 1.0 instead of | ||
# `np.float64(1.0)`. | ||
parsers = ( | ||
[DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE)] | ||
if platform.system() != "Windows" | ||
else [] | ||
) + [ | ||
PythonCodeBlockParser(), | ||
SkipParser(), | ||
] | ||
|
||
pytest_collect_file = Sybil( | ||
parsers=[ | ||
DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE), | ||
PythonCodeBlockParser(), | ||
SkipParser(), | ||
], | ||
parsers=parsers, | ||
patterns=["*.rst", "*.py"], | ||
).pytest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters