[pypy-svn] rev 1013 - pypy/trunk/doc/devel
anna at codespeak.net
anna at codespeak.net
Mon Jun 23 17:31:56 CEST 2003
Author: anna
Date: Mon Jun 23 17:31:55 2003
New Revision: 1013
Modified:
pypy/trunk/doc/devel/using-testsupport.txt
Log:
format using-testsupport for reST
Modified: pypy/trunk/doc/devel/using-testsupport.txt
==============================================================================
--- pypy/trunk/doc/devel/using-testsupport.txt (original)
+++ pypy/trunk/doc/devel/using-testsupport.txt Mon Jun 23 17:31:55 2003
@@ -1,20 +1,23 @@
-Tile testsupport.py should be copied into every test subdirectory.
-The main copy lives in pypy/testsupport.py .
-
-import testsupport
-
-fixes the path so that all 'import pypy.something' should work.
-
-Module testsupport also exposes the following:
- main a function just like unittest.main
- TestCase a class just like unittest.TestCase but with extra methods
- objspace the object space class to be used in this test
-
-testsupport.objspace is normally the trivial object space, but you
-can set it (via an environment variable set before running Python)
-to be the standard object space instead. Specifically:
-
- set OBJSPACE=pypy.objspace.std.objspace.StdObjSpace
-
-(or equivalent syntax depending on your shell) does the job.
-
+=======================
+Using testsupport
+=======================
+
+file ``testsupport.py`` should be copied into every test subdirectory.
+The main copy lives in ``pypy/testsupport.py`` Use::
+
+ import testsupport
+
+to fix the path so that all 'import pypy.something' should work.
+
+Module testsupport also exposes the following:
++ main a function just like unittest.main
++ TestCase a class just like unittest.TestCase but with extra methods
++ objspace the object space class to be used in this test
+
+``testsupport.objspace`` is normally the trivial object space, but you
+can set it (via an environment variable set before running Python)
+to be the standard object space instead. Specifically::
+
+ set OBJSPACE=pypy.objspace.std.objspace.StdObjSpace
+
+(or equivalent syntax depending on your shell) does the job.
\ No newline at end of file
More information about the Pypy-commit
mailing list