Skip to content

Commit afb26bc

Browse files
timhoffmQuLogic
andauthored
Apply suggestions from code review
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent a604755 commit afb26bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/tests/test_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def test_cm_stub_matches_runtime_colormaps():
3939

4040
def test_typing_aliases_documented():
4141
"""Every public type in typing.py is documented or intentionally undocumented."""
42-
typing_docs = Path(__file__).parent / "../../../doc/api/typing_api.rst"
42+
typing_docs = Path(__file__).parents[3] / "doc/api/typing_api.rst"
4343
if not typing_docs.exists():
4444
pytest.skip("Documentation sources not available")
4545

46-
typing_py_path = Path(__file__).parent.parent / "typing.py"
46+
typing_py_path = Path(__file__).parents[1] / "typing.py"
4747
assert typing_py_path.exists(), f"{typing_py_path} does not exist"
4848
tree = ast.parse(typing_py_path.read_text(encoding="utf-8"))
4949

0 commit comments

Comments
 (0)