diff options
| author | hauntsaninja <hauntsaninja@gmail.com> | 2023-01-24 23:08:25 -0800 |
|---|---|---|
| committer | hauntsaninja <hauntsaninja@gmail.com> | 2023-01-24 23:08:25 -0800 |
| commit | a673186f7c5271cc89916ae533f582643b3b8a86 (patch) | |
| tree | eab1b10e8a2b22605af3906566d7664b69155ccf /setuptools/tests | |
| parent | 20b57cf037d0f8f6f826ad348207b513740ae1df (diff) | |
| download | python-setuptools-git-a673186f7c5271cc89916ae533f582643b3b8a86.tar.gz | |
add a test
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_build_meta.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index 9e55a938..93f30480 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -194,6 +194,22 @@ defns = [ 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') + """), + }, ] |
