We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce4273 commit bb03ba6Copy full SHA for bb03ba6
tests/test_confluence_attach.py
@@ -92,7 +92,7 @@ def test_confluence_attach_file_2(self):
92
fd, filename = tempfile.mkstemp("w")
93
os.write(fd, b"Hello World - Version 1")
94
95
- name = os.path.basename(tempfile.mktemp()) + ".txt"
+ name = os.path.basename(tempfile.mkstemp()) + ".txt"
96
97
# upload a new file
98
result = confluence.attach_file(
@@ -148,7 +148,7 @@ def test_confluence_attach_content(self):
148
space = "SAN"
149
title = "atlassian-python-rest-api-wrapper"
150
151
- attachment_name = os.path.basename(tempfile.mktemp())
+ attachment_name = os.path.basename(tempfile.mkstemp())
152
153
154
content = b"Hello World - Version 1"
0 commit comments