mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-03 04:40:16 -06:00
Add PathComparer for testing and fix 2 test failure on Windows. (#5943)
commits are squashed. * Add PathComparer for testing and fix 2 test failure on Windows. * fix flake8 * add type information by f2f review. Thanks to @tk0miya! * fix mypy, flake8 again..
This commit is contained in:
1 parent
75afed1549
commit
795b518464
4 files changed
+112
-4
No files matched your search
@@ -14,6 +14,7 @@ import pytest
|
||||
|
||||
import sphinx
|
||||
from sphinx.testing.path import path
|
||||
from sphinx.testing import comparer
|
||||
|
||||
pytest_plugins = 'sphinx.testing.fixtures'
|
||||
|
||||
@@ -47,3 +48,7 @@ def _initialize_test_directory(session):
|
||||
|
||||
def pytest_sessionstart(session):
|
||||
_initialize_test_directory(session)
|
||||
|
||||
|
||||
def pytest_assertrepr_compare(op, left, right):
|
||||
comparer.pytest_assertrepr_compare(op, left, right)
|
||||
Reference in new issue
Block a user