This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 606340c DISPATCH-1923 Remove support for Python 3.5 (#1054)
606340c is described below
commit 606340c79340a6ed53b744e5d9e9298d135cff96
Author: Jiri Daněk <[email protected]>
AuthorDate: Sun Feb 21 19:55:57 2021 +0100
DISPATCH-1923 Remove support for Python 3.5 (#1054)
---
tests/system_test.py | 11 ++---------
tests/tox.ini.in | 7 +++----
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/tests/system_test.py b/tests/system_test.py
index ea98293..069f235 100755
--- a/tests/system_test.py
+++ b/tests/system_test.py
@@ -876,18 +876,11 @@ class TestCase(unittest.TestCase, Tester): # pylint:
disable=too-many-public-me
if not hasattr(unittest.TestCase, 'assertRegex'):
def assertRegex(self, text, regexp, msg=None):
- """For Python < 3.2"""
- if hasattr(unittest.TestCase, 'assertRegexpMatches'):
- self.assertRegexpMatches(text, regexp, msg)
- else:
- assert re.search(regexp, text), msg or "Can't find %r in '%s'"
% (regexp, text)
+ assert re.search(regexp, text), msg or "Can't find %r in '%s'" %
(regexp, text)
if not hasattr(unittest.TestCase, 'assertNotRegex'):
def assertNotRegex(self, text, regexp, msg=None):
- if hasattr(unittest.TestCase, 'assertNotRegexpMatches'):
- self.assertNotRegexpMatches(text, regexp, msg)
- else:
- assert not re.search(regexp, text), msg or "Found %r in '%s'"
% (regexp, text)
+ assert not re.search(regexp, text), msg or "Found %r in '%s'" %
(regexp, text)
class SkipIfNeeded(object):
diff --git a/tests/tox.ini.in b/tests/tox.ini.in
index 0bc209b..b90317a 100644
--- a/tests/tox.ini.in
+++ b/tests/tox.ini.in
@@ -18,7 +18,7 @@
#
[tox]
-envlist = py27,py35,py36,py37,py38
+envlist = py27,py36,py37,py38,py39
skipsdist = True
minversion = ${TOX_VERSION}
skip_missing_interpreters = True
@@ -41,9 +41,6 @@ deps = hacking>=1.1.0
[testenv:py27]
basepython = python2.7
-[testenv:py35]
-basepython = python3.5
-
[testenv:py36]
basepython = python3.6
@@ -53,3 +50,5 @@ basepython = python3.7
[testenv:py38]
basepython = python3.8
+[testenv:py39]
+basepython = python3.9
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]