Skip to content

Commit

Permalink
Replace deprecatd tempfile.mktemp() calls (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
offa authored Nov 12, 2022
1 parent 2ce4273 commit bb03ba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_confluence_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_confluence_attach_file_2(self):
fd, filename = tempfile.mkstemp("w")
os.write(fd, b"Hello World - Version 1")

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

# upload a new file
result = confluence.attach_file(
Expand Down Expand Up @@ -148,7 +148,7 @@ def test_confluence_attach_content(self):
space = "SAN"
title = "atlassian-python-rest-api-wrapper"

attachment_name = os.path.basename(tempfile.mktemp())
attachment_name = os.path.basename(tempfile.mkstemp())

# upload a new file
content = b"Hello World - Version 1"
Expand Down

0 comments on commit bb03ba6

Please sign in to comment.