Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions testing/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools_scm.utils import do
from setuptools_scm import git
import pytest
from datetime import date
from datetime import datetime
from os.path import join as opj
from setuptools_scm.file_finder_git import git_find_files

Expand Down Expand Up @@ -113,7 +113,8 @@ def test_git_dirty_notag(wd):
wd.write("test.txt", "test2")
wd("git add test.txt")
assert wd.version.startswith("0.1.dev1")
today = date.today()
# the date on the tag is in UTC
today = datetime.utcnow().date()
# we are dirty, check for the tag
assert today.strftime(".d%Y%m%d") in wd.version

Expand Down