summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-02-20 08:14:45 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-02-20 08:14:45 -0500
commitc778139f859c75815fdccefedf9b4133318be795 (patch)
tree65c8497ef2c959a76487b9be013cbd16ab2374df
parentcae288426bfda7872859dbc511e4f386fd58b863 (diff)
downloadpython-coveragepy-git-c778139f859c75815fdccefedf9b4133318be795.tar.gz
style: remove pylint exclusions only needed for 2/3
-rw-r--r--pylintrc4
-rw-r--r--tests/test_cmdline.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/pylintrc b/pylintrc
index c295e4d0..717f67a2 100644
--- a/pylintrc
+++ b/pylintrc
@@ -84,10 +84,6 @@ disable=
# Formatting stuff
superfluous-parens,
bad-continuation,
-# Disable while we still support Python 2:
- useless-object-inheritance,
- super-with-arguments,
- raise-missing-from,
# Messages that are noisy for now, eventually maybe we'll turn them on:
invalid-name,
protected-access,
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 5299a7ad..a088ab8a 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -1047,7 +1047,7 @@ class CmdMainTest(CoverageTest):
try:
raise Exception("oh noes!")
except:
- raise _ExceptionDuringRun(*sys.exc_info())
+ raise _ExceptionDuringRun(*sys.exc_info()) from None
elif argv[0] == 'internalraise':
raise ValueError("coverage is broken")
elif argv[0] == 'exit':