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: ...@@ -1159,15 +1159,9 @@ We have a link server that has a number of eggs:
And that the source directory contains the compiled extension: And that the source directory contains the compiled extension:
>>> ls(extdemo) >>> contents = os.listdir(extdemo)
- MANIFEST >>> any([f for f in contents if f.endswith(('.so', '.pyd'))])
- MANIFEST.in True
- README
d build
- extdemo.c
d extdemo.egg-info
- extdemo.so
- setup.py
Download cache Download cache
-------------- --------------
......
...@@ -3017,8 +3017,6 @@ def test_suite(): ...@@ -3017,8 +3017,6 @@ def test_suite():
zc.buildout.testing.normalize_exception_type_for_python_2_and_3, zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
normalize_bang, normalize_bang,
normalize_S, 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('[-d] distribute-\S+[.]egg'), 'distribute.egg'),
(re.compile(r'\\[\\]?'), '/'), (re.compile(r'\\[\\]?'), '/'),
]+(sys.version_info < (2, 5) and [ ]+(sys.version_info < (2, 5) and [
......
...@@ -546,15 +546,9 @@ Our develop-eggs now includes an egg link for extdemo: ...@@ -546,15 +546,9 @@ Our develop-eggs now includes an egg link for extdemo:
and the extdemo now has a built extension: and the extdemo now has a built extension:
>>> ls(extdemo) >>> contents = os.listdir(extdemo)
- MANIFEST >>> any([f for f in contents if f.endswith(('.so', '.pyd'))])
- MANIFEST.in True
- README
d build
- extdemo.c
d extdemo.egg-info
- extdemo.so
- setup.py
Because develop eggs take precedence over non-develop eggs, the demo Because develop eggs take precedence over non-develop eggs, the demo
script will use the new develop egg: script will use the new develop egg:
......
...@@ -84,8 +84,6 @@ def test_suite(): ...@@ -84,8 +84,6 @@ def test_suite():
"-\d[.]\d-py)\d[.]\d(-\S+)?[.]egg"), "-\d[.]\d-py)\d[.]\d(-\S+)?[.]egg"),
'\\1V.V.egg'), '\\1V.V.egg'),
(re.compile('extdemo.c\n.+\\extdemo.exp\n'), ''), (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( (re.compile(
r'zip_safe flag not set; analyzing archive contents.*\n'), 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