Skip to content

Commit bb03ba6

Browse files
authored
Replace deprecatd tempfile.mktemp() calls (#1076)
1 parent 2ce4273 commit bb03ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_confluence_attach.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_confluence_attach_file_2(self):
9292
fd, filename = tempfile.mkstemp("w")
9393
os.write(fd, b"Hello World - Version 1")
9494

95-
name = os.path.basename(tempfile.mktemp()) + ".txt"
95+
name = os.path.basename(tempfile.mkstemp()) + ".txt"
9696

9797
# upload a new file
9898
result = confluence.attach_file(
@@ -148,7 +148,7 @@ def test_confluence_attach_content(self):
148148
space = "SAN"
149149
title = "atlassian-python-rest-api-wrapper"
150150

151-
attachment_name = os.path.basename(tempfile.mktemp())
151+
attachment_name = os.path.basename(tempfile.mkstemp())
152152

153153
# upload a new file
154154
content = b"Hello World - Version 1"

0 commit comments

Comments
 (0)