File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 24
24
from setuptools_scm import NonNormalizedVersion
25
25
from setuptools_scm .file_finder_git import git_find_files
26
26
from setuptools_scm .git import archival_to_version
27
- from setuptools_scm .utils import data_from_mime
28
27
from setuptools_scm .utils import do
29
28
from setuptools_scm .utils import has_command
30
29
@@ -546,12 +545,9 @@ def test_git_archival_node_missing_no_version() -> None:
546
545
assert version is None
547
546
548
547
549
- def test_git_archhival_from_unfiltered () -> None :
548
+ def test_git_archival_from_unfiltered () -> None :
550
549
config = Configuration ()
551
550
552
- import setuptools_scm
553
-
554
- data = data_from_mime (Path (setuptools_scm .__file__ ).parent / ".git_archival.txt" )
555
551
with pytest .warns (UserWarning , match = "unexported git archival found" ):
556
- version = archival_to_version (data , config = config )
552
+ version = archival_to_version ({ "node" : "$Format:%H$" } , config = config )
557
553
assert version is None
You can’t perform that action at this time.
0 commit comments