[Patches] [Patch #101162] a Python/C API testing framework (simple simple)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 02 Feb 2001 10:37:18 -0800


Patch #101162 has been updated. 

Project: python
Category: Build
Status: Closed
Submitted by: tmick
Assigned to : jhylton
Summary: a Python/C API testing framework (simple simple)

Follow-Ups:

Date: 2001-Feb-02 10:37
By: jhylton

Comment:
MAL added the necessary setup.py entry

-------------------------------------------------------

Date: 2001-Feb-01 22:02
By: tim_one

Comment:
Duh, yes, this has been a blind spot.  Assigned to Jeremy to assign to
someone to do the Unix build changes (sounds like Andrew is begging for it
<wink>).

Checked in derived changes, like so:

Modules/_testmodule.c initial revision: 1.1
test_capi.py initial revision: 1.1
output/test_capi initial revision: 1.1
NEWS new revision: 1.117
PCbuild/_test.dsp initial revision: 1.1
PCbuild/pcbuild.dsw new revision: 1.24
PCbuild/readme.txt new revision: 1.18

-------------------------------------------------------

Date: 2001-Feb-01 15:36
By: jhylton

Comment:
Will it be possible to include this in 2.1a2?

-------------------------------------------------------

Date: 2001-Jan-29 12:51
By: akuchling

Comment:
Assuming that the _test  module doesn't need anything special
to compile (and why should it?), the change to setup.py is simple,
adding the following line:
	exts.append( Extension('_test', ['_testmodule.c']) ) 


-------------------------------------------------------

Date: 2001-Jan-25 05:37
By: nobody

Comment:
This patch needs to be modified to use setup.py rather then Makefile.pre.in
-------------------------------------------------------

Date: 2000-Aug-11 13:37
By: tmick

Comment:
Here is a proposed patch for a Python/C API testing framework. Simple
simple.

Basic Overview:

- add a _test C extension module that exports test functions beginning
with
  'test_'; NULL and a TestError exception indicates a test failure and
  Py_None indicate a test pass
- add a test_capi.py test module that calls each of the 'test_' exported
  functions in the '_test' module
- changes to the build system files for Win32 and Unix are includes to
build
  _testmodule.c as a shared extension
- new files: Lib/test/test_capi.py, Lib/test/output/test_capi,
  Modules/_testmodule.c, and PCbuild/_test.dsp


-------------------------------------------------------

Date: 2000-Aug-11 13:48
By: tmick

Comment:
don't use C++ style comments
-------------------------------------------------------

Date: 2000-Aug-12 13:46
By: tmick

Comment:
Skip,
You seemed to have some interest in this the couple of times it came up on
python-dev. I wonder if you might want to review this. No rush, I don't
expect this to go in anytime soon. Unless, of course, people just *have* to
have it. <wink>

-------------------------------------------------------

Date: 2000-Aug-15 15:23
By: tim_one

Comment:
Sorry, but there is a rush!  Since Python 2.0 is scheduled to have only 1
beta cycle, if this doesn't make it into the beta (< 2 weeks, according to
the schedule), it's for 2.1 at best.  It would be very good to have a start
at this (no matter how simple) in place for 2.0.
-------------------------------------------------------

Date: 2000-Aug-16 12:05
By: tmick

Comment:
re: delaying to 2.1:
doesn't bother me much
Should it now be "postponed", Tim?
-------------------------------------------------------

Date: 2000-Aug-21 19:54
By: montanaro

Comment:
postponed until 2.1
-------------------------------------------------------

Date: 2000-Nov-27 07:47
By: gvanrossum

Comment:
Randomly reassigned for review now that 2.1 is open and Skip seems to be
too busy to look at this.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101162&group_id=5470