diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3c874ed2..bcab794c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -exclude: doc/en/example/py2py3/test_py2.py repos: - repo: https://github.com/psf/black rev: 19.10b0 diff --git a/doc/en/example/py2py3/conftest.py b/doc/en/example/py2py3/conftest.py deleted file mode 100644 index 844510a25..000000000 --- a/doc/en/example/py2py3/conftest.py +++ /dev/null @@ -1,16 +0,0 @@ -import sys - -import pytest - -py3 = sys.version_info[0] >= 3 - - -class DummyCollector(pytest.collect.File): - def collect(self): - return [] - - -def pytest_pycollect_makemodule(path, parent): - bn = path.basename - if "py3" in bn and not py3 or ("py2" in bn and py3): - return DummyCollector(path, parent=parent) diff --git a/doc/en/example/py2py3/test_py2.py b/doc/en/example/py2py3/test_py2.py deleted file mode 100644 index 1f665086e..000000000 --- a/doc/en/example/py2py3/test_py2.py +++ /dev/null @@ -1,5 +0,0 @@ -def test_exception_syntax(): - try: - 0 / 0 - except ZeroDivisionError, e: - assert e diff --git a/doc/en/example/py2py3/test_py3.py b/doc/en/example/py2py3/test_py3.py deleted file mode 100644 index d95702a53..000000000 --- a/doc/en/example/py2py3/test_py3.py +++ /dev/null @@ -1,5 +0,0 @@ -def test_exception_syntax(): - try: - 0 / 0 - except ZeroDivisionError as e: - assert e