diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 20:01:57 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 20:01:57 -0400 |
commit | cfc6f4525eb573292f486d72833ba2e184b2bba9 (patch) | |
tree | 6d2d3b62c946de45843edf8275021c35cead8f14 /test/coveragetest.py | |
parent | 587cb098084ce02fe1236b1e91df2b59c4e84a1c (diff) | |
download | python-coveragepy-cfc6f4525eb573292f486d72833ba2e184b2bba9.tar.gz |
New more flexible data storage.
Diffstat (limited to 'test/coveragetest.py')
-rw-r--r-- | test/coveragetest.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/coveragetest.py b/test/coveragetest.py index 90ef2f5..c96e32c 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -3,6 +3,13 @@ import imp, os, random, shutil, sys, tempfile, textwrap, unittest from cStringIO import StringIO +try: + set() +except NameError: + # pylint: disable-msg=W0622 + # (Redefining built-in 'set') + from sets import Set as set + import coverage @@ -197,3 +204,7 @@ class CoverageTest(unittest.TestCase): output = stdouterr.read() print output return output + + def assert_equal_sets(self, s1, s2): + """Assert that the two arguments are equal as sets.""" + self.assertEqual(set(s1), set(s2)) |