[issue9859] Add tests to verify API match of modules with 2 implementations
Daniel Stutzbach
report at bugs.python.org
Wed Sep 15 15:46:44 CEST 2010
New submission from Daniel Stutzbach <daniel at stutzbachenterprises.com>:
Recently it came to light that the classes in C and Python implementations of the io module have slightly different attributes (issue9858). I propose the addition of a helper function in Lib/test/support.py to verify that the classes in two different implementations define the same attributes. Then, we can add tests to use that function to verify that C and Python implementations define the same API (for the io module, but also for other modules where we have two implementations). The script I added to issue9858 could serve as a starting point for such a function.
Since CPython's standard library is the de facto reference implementation, it's important that it define one API and not two slightly different ones. :-)
----------
components: Tests
messages: 116445
nosy: stutzbach
priority: low
severity: normal
stage: needs patch
status: open
title: Add tests to verify API match of modules with 2 implementations
type: feature request
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9859>
_______________________________________
More information about the Python-bugs-list
mailing list