Older version compatibility.
This commit is contained in:
@@ -41,9 +41,12 @@ def new_closeall_check(self, usedefault):
|
|||||||
|
|
||||||
HelperFunctionTests.closeall_check = new_closeall_check
|
HelperFunctionTests.closeall_check = new_closeall_check
|
||||||
|
|
||||||
|
try:
|
||||||
# Eventlet's select() emulation doesn't support the POLLPRI flag,
|
# Eventlet's select() emulation doesn't support the POLLPRI flag,
|
||||||
# which this test relies on. Therefore, nuke it!
|
# which this test relies on. Therefore, nuke it!
|
||||||
BaseTestAPI.test_handle_expt = lambda *a, **kw: None
|
BaseTestAPI.test_handle_expt = lambda *a, **kw: None
|
||||||
|
except NameError:
|
||||||
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
Reference in New Issue
Block a user