Commit 117239ff authored by Jason Madden's avatar Jason Madden

Attempt to fix test__signal.test_reload on linux.

parent 7e783032
......@@ -82,7 +82,13 @@ from gevent import signal as _signal_module
class _signal_metaclass(type):
def __getattr__(cls, name):
return getattr(_signal_module, name)
val = getattr(_signal_module, name)
if name == '__cached__' and val is None:
# In 3.6b1 on Travis, the signal module's
# __cached__ is somehow None, which breaks
# reloading because os.path.abspath blows up on None.
# It gracefully handles an AttributeError, though.
raise AttributeError(name)
def __setattr__(cls, name, value):
# For symmetry with getattr and dir, pass all
......
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