Commit 637c7a05 authored by Hanno Schlichting's avatar Hanno Schlichting

change test for compiled extension to look for any `.so` or `.pyd` file

parent 23103fb2
......@@ -1159,15 +1159,9 @@ We have a link server that has a number of eggs:
And that the source directory contains the compiled extension:
>>> ls(extdemo)
- MANIFEST
- MANIFEST.in
- README
d build
- extdemo.c
d extdemo.egg-info
- extdemo.so
- setup.py
>>> contents = os.listdir(extdemo)
>>> any([f for f in contents if f.endswith(('.so', '.pyd'))])
True
Download cache
--------------
......
......@@ -3017,8 +3017,6 @@ def test_suite():
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
normalize_bang,
normalize_S,
(re.compile('extdemo[.]pyd'), 'extdemo.so'),
(re.compile('extdemo[.]cpython-3?m.so'), 'extdemo.so'),
(re.compile('[-d] distribute-\S+[.]egg'), 'distribute.egg'),
(re.compile(r'\\[\\]?'), '/'),
]+(sys.version_info < (2, 5) and [
......
......@@ -546,15 +546,9 @@ Our develop-eggs now includes an egg link for extdemo:
and the extdemo now has a built extension:
>>> ls(extdemo)
- MANIFEST
- MANIFEST.in
- README
d build
- extdemo.c
d extdemo.egg-info
- extdemo.so
- setup.py
>>> contents = os.listdir(extdemo)
>>> any([f for f in contents if f.endswith(('.so', '.pyd'))])
True
Because develop eggs take precedence over non-develop eggs, the demo
script will use the new develop egg:
......
......@@ -84,8 +84,6 @@ def test_suite():
"-\d[.]\d-py)\d[.]\d(-\S+)?[.]egg"),
'\\1V.V.egg'),
(re.compile('extdemo.c\n.+\\extdemo.exp\n'), ''),
(re.compile('extdemo[.]pyd'), 'extdemo.so'),
(re.compile('extdemo[.]cpython-3?m.so'), 'extdemo.so'),
(re.compile(
r'zip_safe flag not set; analyzing archive contents.*\n'),
''),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment