On Tue, Jul 27, 2010 at 12:47 PM, Robert Bradshaw
<rober...@math.washington.edu> wrote:
>> What would you consider suitable tests?  All I can think of is to
>> write Cython classes that define all the special methods, then write
>> Python code that extracts each special method as a bound method and
>> then calls it.  Can you think of more tests?
>
> That would be sufficient, and a very good test to have.

The test patch is up at #561.

I tested it under Python 2.5 and 2.6.

By the way, how do you test under Python 3?  I tried "make test3"
(after changing python3.0 to python3.1 in the Makefile) but got this
error:

python3.1 runtests.py -vv --no-cython
Running tests without Cython.
Python 3.1.2 (release31-maint, Jul  8 2010, 09:18:08)
[GCC 4.4.4]

Traceback (most recent call last):
  File "runtests.py", line 856, in <module>
    pyxbuild_dir=os.path.join(WORKDIR, "support"))
  File "/home/cwitty/hg-cython/cython-devel/pyximport/pyxbuild.py",
line 85, in pyx_to_dll
    dist.run_commands()
  File "/usr/lib/python3.1/distutils/dist.py", line 919, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.1/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.1/distutils/command/build_ext.py", line 347, in run
    self.build_extensions()
  File "/home/cwitty/hg-cython/cython-devel/Cython/Distutils/build_ext.py",
line 80, in build_extensions
    ext.sources = self.cython_sources(ext.sources, ext)
  File "/home/cwitty/hg-cython/cython-devel/Cython/Distutils/build_ext.py",
line 91, in cython_sources
    from Cython.Compiler.Main \
  File "/home/cwitty/hg-cython/cython-devel/Cython/Compiler/Main.py", line 35
    print t.dump()
          ^
SyntaxError: invalid syntax

Carl
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to