Commit Graph

6 Commits

Author SHA1 Message Date
Paul Sokolovsky
926d2b621e Count individual testcases when running tests.
The idea is simple: each print represents a testcase within a test unit.
As we don't have strict rules on which/how many testcase are put into
a test file, it's nice to have an idea how many *testcases* we have
totally. Would be nice to count how many testcases pass/fail, but
that's a bit less trivial.
2014-01-08 22:49:34 +02:00
Paul Sokolovsky
21dfb55dad tests/basics requires python3.3
tests/bytecode/run-tests already uses puthon3.3, so let's just use it here
too.

Fore reference, errors with python 3.2.3:

  File "tests/generator1.py", line 12
    return None
SyntaxError: 'return' with argument inside generator

  File "tests/list_clear.py", line 3, in <module>
    x.clear()
AttributeError: 'list' object has no attribute 'clear'

etc.
2014-01-04 19:06:34 +02:00
Damien George
66028ab6dc Basic implementation of import.
import works for simple cases.  Still work to do on finding the right
script, and setting globals/locals correctly when running an imported
function.
2014-01-03 14:03:48 +00:00
Damien George
bbabfb40ba Fix bash->/usr/bin/env bash; add LICENSE for Python library tests. 2014-01-02 16:14:19 +00:00
Damien
046147dcd5 Small change to handling of integers in run-tests. 2013-12-29 22:38:03 +00:00
Damien
39977a56da Add basic functionality tests for the Python bit. 2013-12-29 22:34:42 +00:00