Commit 28f68a2a authored by Jeremy Hylton's avatar Jeremy Hylton

Update to use unittest from Python 2.1 standard library

VerboseTextTestRunner() => TestTestRunner(verbosity=2)
parent 830f5f87
...@@ -95,13 +95,11 @@ from BTrees.OOBTree import OOBTree, OOBucket, OOSet, OOTreeSet ...@@ -95,13 +95,11 @@ from BTrees.OOBTree import OOBTree, OOBucket, OOSet, OOTreeSet
from BTrees.IOBTree import IOBTree, IOBucket, IOSet, IOTreeSet from BTrees.IOBTree import IOBTree, IOBucket, IOSet, IOTreeSet
from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet
from unittest import TestCase, TestSuite, VerboseTextTestRunner, makeSuite from unittest import TestCase, TestSuite, TextTestRunner, makeSuite
from glob import glob from glob import glob
import os import os
TextTestRunner = VerboseTextTestRunner
class Base: class Base:
""" Tests common to all types: sets, buckets, and BTrees """ """ Tests common to all types: sets, buckets, and BTrees """
def tearDown(self): def tearDown(self):
...@@ -819,7 +817,7 @@ def test_suite(): ...@@ -819,7 +817,7 @@ def test_suite():
def main(): def main():
alltests=test_suite() alltests=test_suite()
runner = TextTestRunner() runner = TextTestRunner(verbosity=2)
runner.run(alltests) runner.run(alltests)
def debug(): def debug():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment