Unpin pytest, pacify new flake8

This commit is contained in:
Hynek Schlawack 2018-10-24 12:13:44 +02:00
parent 290cf2a3f0
commit 4202dcbce0
2 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ EXTRAS_REQUIRE = {
"coverage",
"hypothesis",
"pympler",
"pytest<3.9",
"pytest",
"six",
"zope.interface",
],
@ -87,7 +87,9 @@ LONG = (
+ "Release Information\n"
+ "===================\n\n"
+ re.search(
"(\d+.\d.\d \(.*?\)\n.*?)\n\n\n----\n\n\n", read("CHANGELOG.rst"), re.S
r"(\d+.\d.\d \(.*?\)\n.*?)\n\n\n----\n\n\n",
read("CHANGELOG.rst"),
re.S,
).group(1)
+ "\n\n`Full changelog "
+ "<{url}en/stable/changelog.html>`_.\n\n".format(url=URL)

View File

@ -136,7 +136,7 @@ class _InValidator(object):
def __call__(self, inst, attr, value):
try:
in_options = value in self.options
except TypeError as e: # e.g. `1 in "abc"`
except TypeError: # e.g. `1 in "abc"`
in_options = False
if not in_options: