summaryrefslogtreecommitdiffstats
path: root/qa/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/base.py')
-rw-r--r--qa/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/base.py b/qa/base.py
index 02118d7..2dd2715 100644
--- a/qa/base.py
+++ b/qa/base.py
@@ -57,7 +57,8 @@ class BaseTestCase(TestCase):
@classmethod
def generate_temp_path(cls):
- return os.path.realpath("/tmp/gitlint-test-{0}".format(datetime.now().strftime("%Y%m%d-%H%M%S-%f")))
+ timestamp = datetime.now().strftime("%Y%m%d-%H%M%S-%f")
+ return os.path.realpath(f"/tmp/gitlint-test-{timestamp}")
@classmethod
def create_tmp_git_repo(cls):