Browse Source

tests: Add suffix to temporary directories

Currently, unit testing does not cleanup the temporary directory
structure that it creates. Make it more easily identifiable for manual
cleanup by adding a recognizable suffix.
test_fixup
Aaron Sierra 4 years ago
parent
commit
a9aaf242c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests.py

+ 1
- 1
tests.py View File

@@ -33,7 +33,7 @@ from libarchive.zip import is_zipfile, ZipFile, ZipEntry

PY3 = sys.version_info[0] == 3

TMPDIR = tempfile.mkdtemp()
TMPDIR = tempfile.mkdtemp(suffix='.python-libarchive')
ZIPCMD = '/usr/bin/zip'
ZIPFILE = 'test.zip'
ZIPPATH = os.path.join(TMPDIR, ZIPFILE)


Loading…
Cancel
Save