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 2424from setuptools_scm import NonNormalizedVersion
2525from setuptools_scm .file_finder_git import git_find_files
2626from setuptools_scm .git import archival_to_version
27- from setuptools_scm .utils import data_from_mime
2827from setuptools_scm .utils import do
2928from setuptools_scm .utils import has_command
3029
@@ -546,12 +545,9 @@ def test_git_archival_node_missing_no_version() -> None:
546545 assert version is None
547546
548547
549- def test_git_archhival_from_unfiltered () -> None :
548+ def test_git_archival_from_unfiltered () -> None :
550549 config = Configuration ()
551550
552- import setuptools_scm
553-
554- data = data_from_mime (Path (setuptools_scm .__file__ ).parent / ".git_archival.txt" )
555551 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 )
557553 assert version is None
You can’t perform that action at this time.
0 commit comments