Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 25, 2023
1 parent 20b57cf commit a673186
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,22 @@ def run():
print('hello')
""")
},
{ # setup.py that relies on __file__ being an absolute path
'setup.py': DALS("""
import os
assert os.path.isabs(__file__)
__import__('setuptools').setup(
name='foo',
version='0.0.0',
py_modules=['hello'],
setup_requires=['six'],
)
"""),
'hello.py': DALS("""
def run():
print('hello')
"""),
},
]


Expand Down

0 comments on commit a673186

Please sign in to comment.