This patch removes all uses of "assert" in the regression test suite
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
diff --git a/Lib/test/test_bufio.py b/Lib/test/test_bufio.py
index 168a6b2..fb8fe10 100644
--- a/Lib/test/test_bufio.py
+++ b/Lib/test/test_bufio.py
@@ -13,7 +13,7 @@
 def drive_one(pattern, length):
     q, r = divmod(length, len(pattern))
     teststring = pattern * q + pattern[:r]
-    assert len(teststring) == length
+    verify(len(teststring) == length)
     try_one(teststring)
     try_one(teststring + "x")
     try_one(teststring[:-1])