Where are the python stdlib tests?

Say I wrote classthat looks like dict. I want him to pass the same unit test standard dicttransfers, maybe some changes.

Where can I find this code?

+5
source share
2 answers

To build Paul's answer, it looks like python is now using mercurial

http://hg.python.org/releasing/2.7.3/file/7bb96963d067/Lib/test/test_dict.py

For other tests, go to

http://hg.python.org/

releasing/<python version> > browse ( ) > . hg.python.org svn.python.org.

+1

All Articles