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 Feb 29, 2020
1 parent fc65b2f commit fcecef2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_readme.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import sys
from io import StringIO

try:
from pathlib import Path
except ImportError:
from pathlib2 import Path

import pytest
from readme_renderer.rst import render


@pytest.mark.skipif(sys.version_info >= (3, 9), 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 fcecef2

Please sign in to comment.