diff options
author | Chris McDonough <chrism@plope.com> | 2014-05-16 17:46:06 -0400 |
---|---|---|
committer | Chris McDonough <chrism@plope.com> | 2014-05-16 17:46:06 -0400 |
commit | 1ea88ba94326d80ed816c288506414b17663c9b9 (patch) | |
tree | 2e4cefd368f7f9a6b8ca6ff0dd9443abfcb0863e | |
parent | 127100d7220e4ddab37e54ac303975377e866324 (diff) | |
download | waitress-1ea88ba94326d80ed816c288506414b17663c9b9.tar.gz |
avoid spurious race condition errors during testing
-rw-r--r-- | waitress/utilities.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/waitress/utilities.py b/waitress/utilities.py index b2618c6..943c92f 100644 --- a/waitress/utilities.py +++ b/waitress/utilities.py @@ -188,7 +188,11 @@ def cleanup_unix_socket(path): raise # pragma: no cover else: if stat.S_ISSOCK(st.st_mode): - os.remove(path) + try: + os.remove(path) + except OSError: # pragma: no cover + # avoid race condition error during tests + pass class Error(object): |