summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-07 22:03:39 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-02-07 22:03:39 -0500
commit5ebcc7eb1fa192c651f3d42cefe804fe4d836c75 (patch)
tree9d0f11f7a07bceaf5a83022e18b1174fe1ca9b55
parent40dbf22a89aee46b180514d360ebedc592c5b80b (diff)
downloadcherrypy-5ebcc7eb1fa192c651f3d42cefe804fe4d836c75.tar.gz
Create the unix socket in a temporary dir, as the directory for the tests may not be suitable for creating a unix socket. Fixes #1407.
-rw-r--r--cherrypy/test/test_wsgi_unix_socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/test/test_wsgi_unix_socket.py b/cherrypy/test/test_wsgi_unix_socket.py
index 0e98a4c5..0a552bc5 100644
--- a/cherrypy/test/test_wsgi_unix_socket.py
+++ b/cherrypy/test/test_wsgi_unix_socket.py
@@ -2,6 +2,7 @@ import os
import sys
import socket
import atexit
+import tempfile
import cherrypy
from cherrypy.test import helper
@@ -9,7 +10,7 @@ from cherrypy._cpcompat import HTTPConnection
USOCKET_PATH = os.path.join(
- os.path.dirname(os.path.realpath(__file__)),
+ tempfile.gettempdir(),
'cp_test.sock'
)