scipy-doctest 2.0.0__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/PKG-INFO +1 -1
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/__init__.py +1 -1
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/impl.py +11 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/util.py +2 -2
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/LICENSE +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/README.md +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/pyproject.toml +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/__main__.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/conftest.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/frontend.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/plugin.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/__init__.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/failure_cases.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/failure_cases_2.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/finder_cases.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/finder_cases_2.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/local_file.txt +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/local_file_cases.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/module_cases.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/octave_a.mat +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/scipy_ndimage_tutorial_clone.rst +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/stopwords_cases.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_finder.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_parser.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_pytest_configuration.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_runner.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_skipmarkers.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_testfile.py +0 -0
- {scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_testmod.py +0 -0
|
@@ -605,6 +605,17 @@ class DTFinder(doctest.DocTestFinder):
|
|
|
605
605
|
verbose, dtverbose = util._map_verbosity(verbose)
|
|
606
606
|
super().__init__(dtverbose, parser, recurse, exclude_empty)
|
|
607
607
|
|
|
608
|
+
def _from_module(self, module, object):
|
|
609
|
+
# https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/conftest.py#L122-L131
|
|
610
|
+
# We only get here when the class that the method is on is from the
|
|
611
|
+
# appropriate module. So ignore checking the __module__ of the method
|
|
612
|
+
# itself and run the doctest.
|
|
613
|
+
# cf https://mail.python.org/archives/list/numpy-discussion@python.org/thread/PWZUBTNEQ2O2UEGJLU257C5VCT4YTQ5Y/
|
|
614
|
+
# for the discussion
|
|
615
|
+
if inspect.isfunction(object) and "." in object.__qualname__:
|
|
616
|
+
return True
|
|
617
|
+
return super()._from_module(module, object)
|
|
618
|
+
|
|
608
619
|
def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
|
|
609
620
|
if globs is None:
|
|
610
621
|
globs = dict(self.config.default_namespace)
|
|
@@ -10,7 +10,7 @@ import tempfile
|
|
|
10
10
|
import inspect
|
|
11
11
|
from contextlib import contextmanager
|
|
12
12
|
|
|
13
|
-
from typing import Sequence
|
|
13
|
+
from typing import Sequence, Union
|
|
14
14
|
|
|
15
15
|
from importlib.metadata import version as get_version, PackageNotFoundError
|
|
16
16
|
from packaging.requirements import Requirement
|
|
@@ -259,7 +259,7 @@ def get_public_objects(module, skiplist=None):
|
|
|
259
259
|
return (items, names), failures
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
def is_req_satisfied(req_strs: str
|
|
262
|
+
def is_req_satisfied(req_strs: Union[str, Sequence[str]]) -> bool:
|
|
263
263
|
""" Check if all PEP 508-compliant requirement(s) are satisfied or not.
|
|
264
264
|
"""
|
|
265
265
|
req_strs = [req_strs] if isinstance(req_strs, str) else req_strs
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/scipy_ndimage_tutorial_clone.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scipy_doctest-2.0.0 → scipy_doctest-2.1.0}/scipy_doctest/tests/test_pytest_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|