Skip to content

Commit 2729e79

Browse files
committed
TST: add test using filename with non latin-1 characters
1 parent 201d8f9 commit 2729e79

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

tests/packages/encoding/meson.build

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-FileCopyrightText: 2023 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
project('encoding', version: '1.0.0')
6+
7+
py = import('python').find_installation()
8+
9+
py.install_sources('テスト.py')
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-FileCopyrightText: 2023 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
[build-system]
6+
build-backend = 'mesonpy'
7+
requires = ['meson-python']

tests/packages/encoding/テスト.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2023 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT

tests/test_wheel.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,15 @@ def test_vendored_meson(wheel_vendored_meson):
338338
# This test will error if the vendored meson.py wrapper script in
339339
# the test package isn't used.
340340
pass
341+
342+
343+
def test_encoding(package_encoding, tmp_path):
344+
with mesonpy._project() as project:
345+
wheelname = project.wheel(tmp_path)
346+
artifact = wheel.wheelfile.WheelFile(tmp_path / wheelname)
347+
assert wheel_contents(artifact) == {
348+
'encoding-1.0.0.dist-info/METADATA',
349+
'encoding-1.0.0.dist-info/RECORD',
350+
'encoding-1.0.0.dist-info/WHEEL',
351+
'テスト.py',
352+
}

0 commit comments

Comments
 (0)