Commit b45460cc authored by Jason Madden's avatar Jason Madden

Stop ignoring FrameType and TracebackType during leakchecks.

They're important objects. Locally, the 3.11 tests pass fine this way.

The 2.7 tests had two failures, one from being unable to make a connection in test__server, and one from a timeout in test__doctest. I suspect those are unrelated; lets see what CI says.
parent 93c6542e
...@@ -21,7 +21,6 @@ from __future__ import print_function ...@@ -21,7 +21,6 @@ from __future__ import print_function
import sys import sys
import gc import gc
import types
from functools import wraps from functools import wraps
import unittest import unittest
...@@ -52,8 +51,10 @@ def ignores_leakcheck(func): ...@@ -52,8 +51,10 @@ def ignores_leakcheck(func):
class _RefCountChecker(object): class _RefCountChecker(object):
# Some builtin things that we ignore # Some builtin things that we ignore.
IGNORED_TYPES = (tuple, dict, types.FrameType, types.TracebackType) # For awhile, we also ignored types.FrameType and types.TracebackType,
# but those are important and often involved in leaks.
IGNORED_TYPES = (tuple, dict,)
try: try:
CALLBACK_KIND = gevent.core.callback CALLBACK_KIND = gevent.core.callback
except AttributeError: except AttributeError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment