diff options
author | zax <zach.smith@makespace.com> | 2015-11-01 17:16:20 -0500 |
---|---|---|
committer | zax <zach.smith@makespace.com> | 2015-11-01 17:16:20 -0500 |
commit | 16091976d0d1c0f4b79f60de79131ee74b3fd7fe (patch) | |
tree | 93896a8b0d164688c8876e39aa62880af011ddd5 | |
parent | a10a99490c1a05979553f2454f77f46b71cf9977 (diff) | |
download | pycco-16091976d0d1c0f4b79f60de79131ee74b3fd7fe.tar.gz |
put test dirs in a timestamped dir
-rw-r--r-- | tests/test_pycco.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pycco.py b/tests/test_pycco.py index 9ae5b35..2cab59f 100644 --- a/tests/test_pycco.py +++ b/tests/test_pycco.py @@ -1,6 +1,7 @@ import copy import os import tempfile +import time import pytest from hypothesis import given, example, assume @@ -89,7 +90,7 @@ def test_get_language_bad_code(code): @given(text(max_size=64)) def test_ensure_directory(dir_name): - tempdir = os.path.join(tempfile.gettempdir(), dir_name) + tempdir = os.path.join(tempfile.gettempdir(), str(int(time.time())), dir_name) # Use sanitization from function, but only for housekeeping. We # pass in the unsanitized string to the function. |