summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorhauntsaninja <hauntsaninja@gmail.com>2023-01-24 23:08:25 -0800
committerhauntsaninja <hauntsaninja@gmail.com>2023-01-24 23:08:25 -0800
commita673186f7c5271cc89916ae533f582643b3b8a86 (patch)
treeeab1b10e8a2b22605af3906566d7664b69155ccf /setuptools/tests
parent20b57cf037d0f8f6f826ad348207b513740ae1df (diff)
downloadpython-setuptools-git-a673186f7c5271cc89916ae533f582643b3b8a86.tar.gz
add a test
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_build_meta.py16
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')
+ """),
+ },
]