diff --git a/.travis.yml b/.travis.yml index e0ed0fe..f02ece2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,9 @@ matrix: - python: 3.7 dist: xenial env: TOX_ENV=py37 + - python: 3.8 + dist: xenial + env: TOX_ENV=py38 install: - pip install -U pip - pip install flake8 tox diff --git a/isso/tests/test_comments.py b/isso/tests/test_comments.py index 2f2292e..2dcb04b 100644 --- a/isso/tests/test_comments.py +++ b/isso/tests/test_comments.py @@ -370,8 +370,11 @@ class TestComments(unittest.TestCase): data = rv.data.decode('utf-8') data = re.sub('[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]+Z', '2018-04-01T10:00:00Z', data) - self.assertEqual(data, """ -2018-04-01T10:00:00Ztag:example.org,2018:/isso/thread/path/Comments for example.org/path/tag:example.org,2018:/isso/1/2Comment #22018-04-01T10:00:00Z<p><em>Second</em></p>tag:example.org,2018:/isso/1/1Comment #12018-04-01T10:00:00Z<p>First</p>""") + self.maxDiff = None + # Two accepted outputs, since different versions of Python sort attributes in different order. + self.assertIn(data, [""" +2018-04-01T10:00:00Ztag:example.org,2018:/isso/thread/path/Comments for example.org/path/tag:example.org,2018:/isso/1/2Comment #22018-04-01T10:00:00Z<p><em>Second</em></p>tag:example.org,2018:/isso/1/1Comment #12018-04-01T10:00:00Z<p>First</p>""", """ +2018-04-01T10:00:00Ztag:example.org,2018:/isso/thread/path/Comments for example.org/path/tag:example.org,2018:/isso/1/2Comment #22018-04-01T10:00:00Z<p><em>Second</em></p>tag:example.org,2018:/isso/1/1Comment #12018-04-01T10:00:00Z<p>First</p>"""]) def testCounts(self): diff --git a/isso/views/comments.py b/isso/views/comments.py index 7dfabaf..5ac0fd4 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -46,6 +46,7 @@ try: except ImportError: from io import BytesIO as StringIO + # from Django appearently, looks good to me *duck* __url_re = re.compile( r'^' diff --git a/setup.py b/setup.py index 4e0c6b0..d660780 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,8 @@ setup( "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" + "Programming Language :: Python :: 3.7" + "Programming Language :: Python :: 3.8" ], install_requires=requires, extras_require={ diff --git a/tox.ini b/tox.ini index 5a168d1..eb58a4d 100755 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,py35,py36,py37 +envlist = py27,py35,py36,py37,py38 [testenv] deps =