mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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
This commit is contained in:
parent
0d38f2e65f
commit
566f8a646e
1 changed files with 74 additions and 73 deletions
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue