Skip to content

Commit

Permalink
tests: Skip readme renderer on py 3.9
Browse files Browse the repository at this point in the history
Readme renderer uses html5lib, which does not work on Python 3.9.

See discussion at:
  html5lib/html5lib-python#419
  • Loading branch information
Synss committed Mar 6, 2020
1 parent fed4165 commit 12305f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_readme.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import sys
from io import StringIO

try:
from pathlib import Path
except ImportError:
from pathlib2 import Path
from readme_renderer.rst import render

import pytest

if sys.version_info < (3, 9):
from readme_renderer.rst import render
else:
render = None


@pytest.mark.skipif(render is None, reason="html5lib issue #419")
def test_pypi_rendering():
# Adapted from `https://stackoverflow.com/questions/46766570/`.
readme = Path("README.rst")
Expand Down

0 comments on commit 12305f4

Please sign in to comment.