File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 29
29
log = logging .getLogger (__name__ )
30
30
31
31
32
+ @pytest .mark .skipif (os .linesep != "\n " , reason = "hashes calculated with \\ n line endings" )
32
33
def test_maturin_unchanged () -> None :
33
34
"""if new options have been added to maturin then the import hook needs to be updated to match"""
34
35
env = {"PATH" : os .environ ["PATH" ], "COLUMNS" : "120" }
35
36
36
37
build_help = subprocess .check_output ("stty rows 50 cols 120; maturin build --help" , shell = True , env = env ) # noqa: S602
37
- assert hashlib .sha1 (build_help ).hexdigest () == "ea47a884c90c9376047687aed98ab1dca29b433a"
38
+ assert hashlib .sha1 (build_help ).hexdigest () == "ea47a884c90c9376047687aed98ab1dca29b433a" , (
39
+ f"hashes don't match. build_help = { build_help !r} "
40
+ )
38
41
39
42
develop_help = subprocess .check_output ("stty rows 50 cols 120; maturin develop --help" , shell = True , env = env ) # noqa: S602
40
- assert hashlib .sha1 (develop_help ).hexdigest () == "ad7036a829c6801224933d589b1f9848678c9458"
43
+ assert hashlib .sha1 (develop_help ).hexdigest () == "ad7036a829c6801224933d589b1f9848678c9458" , (
44
+ f"hashes don't match. develop_help = { develop_help !r} "
45
+ )
41
46
42
47
43
48
def test_settings () -> None :
You can’t perform that action at this time.
0 commit comments