Skip to content

Commit

Permalink
tests: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 27, 2024
1 parent b74bcae commit 452ddc7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ filterwarnings = [
"default:The distutils package is deprecated and slated for removal:DeprecationWarning", # Caused by setuptools sometimes
"default:The distutils.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning", # Caused by setuptools sometimes
"default:check_home argument is deprecated and ignored.:DeprecationWarning", # Caused by setuptools sometimes
"ignore::scikit_build_core._vendor.pyproject_metadata.errors.ConfigurationWarning",
]
log_cli_level = "info"
pythonpath = ["tests/utils"]
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ def package_simple_pyproject_ext(
) -> PackageInfo:
package = PackageInfo(
"simple_pyproject_ext",
"5544d96810ce60ac40baf28cf8caf2e1e7e1fa7439b283d3fb52cdc1f87f12ac",
"aaa15c185dc3fbc301dc2fca937cc935442c38e55bc400fbefd424bd6ce92adb",
"ee3a564a37c42df3abdcee3862175baceeb6f6eff0b29931681b424ec5d96067",
"4c1d402621e7f00fce4ce5afdb73a9ba4cc25cd4bb57619113432841f779dd68",
"72cd37019e113cbabebdceb79bc867f8e1a4fc7323b6a272e6a77d6ea384d3e8",
"be15157c8659f258b73eb474616473d60945c4d45693796b55234ec83893263a",
"d97cd496aa6c46df2caf5064a7765588c831b8db9d7b46a536026ed951ce724a",
"b1182a2aa7a2b81365b3ad7ae1839b20d983ef10b6c3de16b681c23f536ca1b7",
)
process_package(package, tmp_path, monkeypatch)
return package
Expand Down
1 change: 1 addition & 0 deletions tests/test_pyproject_pep517.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
Requires-Python: >=3.7
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
"""

mark_hashes_different = pytest.mark.xfail(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wheelfile_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_wheel_writer_simple(tmp_path, monkeypatch):

dist_info = wheel.dist_info_contents()
assert dist_info == {
"METADATA": b"Metadata-Version: 2.1\nName: something\nVersion: 1.2.3\n",
"METADATA": b"Metadata-Version: 2.1\nName: something\nVersion: 1.2.3\n\n",
"WHEEL": b"Wheel-Version: 1.0\nGenerator: scikit-build-core 1.2.3\nRoot-Is-Purelib: false\nTag: py3-none-any\n\n",
}

Expand Down

0 comments on commit 452ddc7

Please sign in to comment.