mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix deprecation warning in `test_ModuleAnalyzer_get_module_source
`
This commit is contained in:
parent
41277fc7bd
commit
b678d17e00
@ -16,8 +16,8 @@ SPHINX_MODULE_PATH = Path(sphinx.__file__).resolve().with_suffix('.py')
|
||||
|
||||
def test_ModuleAnalyzer_get_module_source():
|
||||
assert ModuleAnalyzer.get_module_source('sphinx') == (
|
||||
sphinx.__file__,
|
||||
sphinx.__loader__.get_source('sphinx'),
|
||||
Path(sphinx.__file__),
|
||||
sphinx.__spec__.loader.get_source('sphinx'),
|
||||
)
|
||||
|
||||
# failed to obtain source information from builtin modules
|
||||
|
Loading…
Reference in New Issue
Block a user