made mkstemp() call compatible with mktemp()

This commit is contained in:
tpltnt 2018-01-28 20:05:53 +01:00
parent 710ba84a02
commit f7bbc9dffe

View File

@ -273,8 +273,9 @@ class Node(service.MultiService):
# tempfile.TemporaryFile) to put large request bodies in the given
# directory. Without this, the default temp dir is usually /tmp/,
# which is frequently too small.
test_name = tempfile.mkstemp()
temp_fd, test_name = tempfile.mkstemp()
_assert(os.path.dirname(test_name) == tempdir, test_name, tempdir)
os.close(temp_fd)
def check_privacy(self):
self._reveal_ip = self.config.get_config("node", "reveal-IP-address", True,