run-tests: drop wifexited polyfill
os.WIFEXITED exists as of python 2.6 for me, so we no longer need this
polyfill.
--- a/tests/run-tests.py Mon May 18 11:43:10 2015 -0400
+++ b/tests/run-tests.py Sun May 17 21:15:04 2015 -0400
@@ -87,8 +87,6 @@
if sys.version_info < (2, 5):
subprocess._cleanup = lambda: None
-wifexited = getattr(os, "WIFEXITED", lambda x: False)
-
def checkportisavailable(port):
"""return true if a port seems free to bind on localhost"""
try:
@@ -789,7 +787,7 @@
raise
ret = proc.wait()
- if wifexited(ret):
+ if os.WIFEXITED(ret):
ret = os.WEXITSTATUS(ret)
if proc.timeout:
@@ -890,7 +888,7 @@
self._testtmp, 0, self._getenv())
stdout, stderr = proc.communicate()
ret = proc.wait()
- if wifexited(ret):
+ if os.WIFEXITED(ret):
ret = os.WEXITSTATUS(ret)
if ret == 2:
print(stdout)