Add python 3.8 support. (#615)
This commit is contained in:
parent
3e3ee8b641
commit
2a4e8c231e
@ -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
|
||||
|
@ -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, """<?xml version=\'1.0\' encoding=\'utf-8\'?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"><updated>2018-04-01T10:00:00Z</updated><id>tag:example.org,2018:/isso/thread/path/</id><title>Comments for example.org/path/</title><entry><id>tag:example.org,2018:/isso/1/2</id><title>Comment #2</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-2" /><content type="html"><p><em>Second</em></p></content><thr:in-reply-to href="https://example.org/path/#isso-1" ref="tag:example.org,2018:/isso/1/1" /></entry><entry><id>tag:example.org,2018:/isso/1/1</id><title>Comment #1</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-1" /><content type="html"><p>First</p></content></entry></feed>""")
|
||||
self.maxDiff = None
|
||||
# Two accepted outputs, since different versions of Python sort attributes in different order.
|
||||
self.assertIn(data, ["""<?xml version=\'1.0\' encoding=\'utf-8\'?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"><updated>2018-04-01T10:00:00Z</updated><id>tag:example.org,2018:/isso/thread/path/</id><title>Comments for example.org/path/</title><entry><id>tag:example.org,2018:/isso/1/2</id><title>Comment #2</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-2" /><content type="html"><p><em>Second</em></p></content><thr:in-reply-to href="https://example.org/path/#isso-1" ref="tag:example.org,2018:/isso/1/1" /></entry><entry><id>tag:example.org,2018:/isso/1/1</id><title>Comment #1</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-1" /><content type="html"><p>First</p></content></entry></feed>""", """<?xml version=\'1.0\' encoding=\'utf-8\'?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"><updated>2018-04-01T10:00:00Z</updated><id>tag:example.org,2018:/isso/thread/path/</id><title>Comments for example.org/path/</title><entry><id>tag:example.org,2018:/isso/1/2</id><title>Comment #2</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-2" /><content type="html"><p><em>Second</em></p></content><thr:in-reply-to ref="tag:example.org,2018:/isso/1/1" href="https://example.org/path/#isso-1" /></entry><entry><id>tag:example.org,2018:/isso/1/1</id><title>Comment #1</title><updated>2018-04-01T10:00:00Z</updated><author><name /></author><link href="https://example.org/path/#isso-1" /><content type="html"><p>First</p></content></entry></feed>"""])
|
||||
|
||||
def testCounts(self):
|
||||
|
||||
|
@ -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'^'
|
||||
|
2
setup.py
2
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={
|
||||
|
Loading…
Reference in New Issue
Block a user