We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2732199 + 49b9ed3 commit e7f0b4bCopy full SHA for e7f0b4b
testing/test_git.py
@@ -4,7 +4,7 @@
4
from setuptools_scm.utils import do
5
from setuptools_scm import git
6
import pytest
7
-from datetime import date
+from datetime import datetime
8
from os.path import join as opj
9
from setuptools_scm.file_finder_git import git_find_files
10
@@ -113,7 +113,8 @@ def test_git_dirty_notag(wd):
113
wd.write("test.txt", "test2")
114
wd("git add test.txt")
115
assert wd.version.startswith("0.1.dev1")
116
- today = date.today()
+ # the date on the tag is in UTC
117
+ today = datetime.utcnow().date()
118
# we are dirty, check for the tag
119
assert today.strftime(".d%Y%m%d") in wd.version
120
0 commit comments