Skip to content

Commit fcecef2

Browse files
committed
tests: Skip readme renderer on py 3.9
Readme renderer uses html5lib, which does not work on Python 3.9. See discussion at: html5lib/html5lib-python#419
1 parent fc65b2f commit fcecef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_readme.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
import sys
12
from io import StringIO
23

34
try:
45
from pathlib import Path
56
except ImportError:
67
from pathlib2 import Path
8+
9+
import pytest
710
from readme_renderer.rst import render
811

912

13+
@pytest.mark.skipif(sys.version_info >= (3, 9), reason="html5lib issue #419")
1014
def test_pypi_rendering():
1115
# Adapted from `https://stackoverflow.com/questions/46766570/`.
1216
readme = Path("README.rst")

0 commit comments

Comments
 (0)