[Python-checkins] r69893 - python/branches/io-c/Lib/test/test_io.py
benjamin.peterson
python-checkins at python.org
Mon Feb 23 00:37:56 CET 2009
Author: benjamin.peterson
Date: Mon Feb 23 00:37:56 2009
New Revision: 69893
Log:
put a big note in the test telling people to write tests for both implementations now
Modified:
python/branches/io-c/Lib/test/test_io.py
Modified: python/branches/io-c/Lib/test/test_io.py
==============================================================================
--- python/branches/io-c/Lib/test/test_io.py (original)
+++ python/branches/io-c/Lib/test/test_io.py Mon Feb 23 00:37:56 2009
@@ -8,6 +8,15 @@
# * test_io - tests everything else in the io module
# * test_univnewlines - tests universal newline support
+################################################################################
+# ATTENTION TEST WRITERS!!!
+################################################################################
+# When writing tests for io, it's important to test both the C and Python
+# implementations. This is usually done by writing a base test that refers to
+# the type it is testing as a attribute. Then it provides custom subclasses to
+# test both implementations. This file has lots of examples.
+################################################################################
+
import os
import sys
import time
More information about the Python-checkins
mailing list