Skip to content

Commit b6a9357

Browse files
committed
WIP: try two different norms
Signed-off-by: Henry Schreiner <[email protected]>
1 parent ed3e1fb commit b6a9357

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/extra_python_package/test_files.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_build_sdist(monkeypatch, tmpdir):
185185
pkgconfig_expected = normalize_line_endings(
186186
PKGCONFIG.format(VERSION=simple_version).encode()
187187
)
188-
assert pkgconfig == pkgconfig_expected
188+
assert normalize_line_endings(pkgconfig) == pkgconfig_expected
189189

190190

191191
def test_build_global_dist(monkeypatch, tmpdir):
@@ -243,10 +243,8 @@ def test_build_global_dist(monkeypatch, tmpdir):
243243
assert pyproject_toml == contents
244244

245245
simple_version = ".".join(version.split(".")[:3])
246-
pkgconfig_expected = normalize_line_endings(
247-
PKGCONFIG.format(VERSION=simple_version).encode()
248-
)
249-
assert pkgconfig == pkgconfig_expected
246+
pkgconfig_expected = PKGCONFIG.format(VERSION=simple_version).encode()
247+
assert normalize_line_endings(pkgconfig) == pkgconfig_expected
250248

251249

252250
def tests_build_wheel(monkeypatch, tmpdir):

0 commit comments

Comments
 (0)