Commit a69fbb25 authored by Jeremy Hylton's avatar Jeremy Hylton

Update for unittest from Python 2.1 standard library

parent 28f68a2a
...@@ -95,9 +95,7 @@ from BTrees.OOBTree import OOBTree, OOBucket, OOSet, OOTreeSet ...@@ -95,9 +95,7 @@ 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
TextTestRunner = VerboseTextTestRunner
class Base: class Base:
""" Tests common to all types: sets, buckets, and BTrees """ """ Tests common to all types: sets, buckets, and BTrees """
...@@ -507,7 +505,7 @@ def test_suite(): ...@@ -507,7 +505,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