summaryrefslogtreecommitdiff
path: root/coverage/pytracer.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-31 09:48:34 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-31 09:48:34 -0500
commitcb491e7f906cd0dca3718cc05bc00b738b638f7d (patch)
tree1f956ec952fc8438c8baedf593816721b40b83a0 /coverage/pytracer.py
parentb04a2edd0b3795565982e362bae9414a0e38dbe3 (diff)
downloadpython-coveragepy-git-cb491e7f906cd0dca3718cc05bc00b738b638f7d.tar.gz
The PyPy-specific test for atexit/gettrace are also PyPy-version-specific...
Diffstat (limited to 'coverage/pytracer.py')
-rw-r--r--coverage/pytracer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/pytracer.py b/coverage/pytracer.py
index 13a3b0c8..6cd3ea30 100644
--- a/coverage/pytracer.py
+++ b/coverage/pytracer.py
@@ -153,7 +153,7 @@ class PyTracer(object):
# so don't warn if we are in atexit on PyPy and the trace function
# has changed to None.
tf = sys.gettrace()
- dont_warn = (env.PYPY and self.in_atexit and tf is None)
+ dont_warn = (env.PYPY and env.PYPYVERSION >= (5, 4) and self.in_atexit and tf is None)
if (not dont_warn) and tf != self._trace:
self.warn("Trace function changed, measurement is likely wrong: %r" % (tf,))