Skip to content

Commit

Permalink
Use join for source path
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Feb 17, 2022
1 parent db13cf7 commit b3273e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension_helpers/tests/test_setup_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def test_no_setup_py(tmpdir, use_extension_helpers):

test_pkg.join(package_name, 'setup_package.py').write(dedent(f"""\
from setuptools import Extension
from os.path import join
def get_extensions():
return [Extension('{package_name}.simple', [r'{simple_c}'])]
return [Extension('{package_name}.simple', [join('{package_name}', 'simple.c')])]
"""))

if use_extension_helpers is None:
Expand Down

0 comments on commit b3273e0

Please sign in to comment.