Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Python itself tested?

Tags:

python

testing

How is Python itself tested? Not, "How do I write unit tests in Python?" but "Where is the compliance suite against which CPython, Pypy, and so on run tests to assert they're Python version-X.Y conformant?"

The python website mentions pythontest.net, but that appears to be just a target for test facilities, not part of or a resource for the compliance suite itself.

like image 427
Elf Sternberg Avatar asked Jun 25 '16 22:06

Elf Sternberg


1 Answers

The CPython source code includes a test suite that is considered to be the compliance suite. This suite is used to test other Python implementations, see for example:

  • the PyPy copy of the suite.
  • the Jython copy
  • the IronPython test suite, which is a subset tuned to what IronPython supports (only a subset of the CPython standard library is included in IronPython)
like image 183
Martijn Pieters Avatar answered Nov 15 '22 03:11

Martijn Pieters