Commit 150f3ddb authored by Giampaolo Rodola's avatar Giampaolo Rodola

os.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute...

os.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute 'Thread'" when running tests with --without-threads option.
reference: http://bugs.python.org/issue10882#msg136257
parent ae37e245
...@@ -1309,7 +1309,8 @@ class ProgramPriorityTests(unittest.TestCase): ...@@ -1309,7 +1309,8 @@ class ProgramPriorityTests(unittest.TestCase):
raise raise
class SendfileTestServer(asyncore.dispatcher, threading.Thread): if threading is not None:
class SendfileTestServer(asyncore.dispatcher, threading.Thread):
class Handler(asynchat.async_chat): class Handler(asynchat.async_chat):
......
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