Skip to content

Commit 6bd7f3e

Browse files
committed
Fix test by adding some_dir to packages
1 parent 75bd4b2 commit 6bd7f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/example_pkg/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
author_email="author@example.com",
1010
description="A package used to test unasync",
1111
url="https://github.com/pypa/sampleproject",
12-
packages=["example_pkg", "example_pkg._async"],
12+
packages=["example_pkg", "example_pkg._async", "example_pkg._async.some_dir"],
1313
cmdclass={"build_py": unasync.build_py},
1414
package_dir={"": "src"},
1515
)

tests/test_unasync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ def test_project_structure_after_build_py():
7575
print(list_files(os.path.join(source_pkg_dir, "src/example_pkg/_async/.")))
7676
print(list_files(os.path.join(pkg_dir, "build/lib/example_pkg/_sync/.")))
7777

78-
assert list_files(os.path.join(tmpdir, "src/example_pkg/_async/.")) == list_files(os.path.join(pkg_dir, "build/lib/example_pkg/_sync/."))
78+
assert list_files(os.path.join(source_pkg_dir, "src/example_pkg/_async/.")) == list_files(os.path.join(pkg_dir, "build/lib/example_pkg/_sync/."))

0 commit comments

Comments
 (0)