Skip to content

Commit f568a02

Browse files
committed
change tmpfile name
1 parent 89d4d00 commit f568a02

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

awscli/testutils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
import logging
2828
import os
2929
import platform
30+
import random
3031
import shutil
32+
import string
3133
import sys
3234
import tempfile
3335
import time
@@ -51,10 +53,9 @@
5153
AWS_CMD = None
5254

5355
with tempfile.TemporaryDirectory() as tmpdir:
54-
tmpf = Path(tmpdir) / 'a.txt'
55-
with open(tmpf, 'w') as f:
56+
with open(Path(tmpdir) / 'aws-cli-tmp-file', 'w') as f:
5657
pass
57-
CASE_INSENSITIVE = (Path(tmpdir) / 'A.txt').exists()
58+
CASE_INSENSITIVE = (Path(tmpdir) / 'AWS-CLI-TMP-FILE').exists()
5859

5960

6061
def skip_if_windows(reason):

0 commit comments

Comments
 (0)