diff options
author | jpellerin <devnull@localhost> | 2009-10-17 02:54:39 -0400 |
---|---|---|
committer | jpellerin <devnull@localhost> | 2009-10-17 02:54:39 -0400 |
commit | 6a99019467d83338f0e820db25b0b0c170cdb42f (patch) | |
tree | 19d33f140f1768be725e1109fb27534a57b6dad9 /unit_tests/test_cases.py | |
parent | 5c5ba6eaf9d48effbdad3a18244e280d6f88a16e (diff) | |
download | nose-6a99019467d83338f0e820db25b0b0c170cdb42f.tar.gz |
Fixed some more 2.7 failures
Diffstat (limited to 'unit_tests/test_cases.py')
-rw-r--r-- | unit_tests/test_cases.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unit_tests/test_cases.py b/unit_tests/test_cases.py index 2821708..2e1ca2a 100644 --- a/unit_tests/test_cases.py +++ b/unit_tests/test_cases.py @@ -243,9 +243,10 @@ class TestNoseTestWrapper(unittest.TestCase): case_b = nose.case.Test(TC('test_b')) case_c = nose.case.Test(TC('test_c')) - self.assertEqual(case_a.shortDescription(), "This is the description") - self.assertEqual(case_b.shortDescription(), "This is the description") - self.assertEqual(case_c.shortDescription(), None) - + assert case_a.shortDescription().endswith("This is the description") + assert case_b.shortDescription().endswith("This is the description") + assert case_c.shortDescription() in (None, # pre 2.7 + 'test_c (test_cases.TC)') # 2.7 + if __name__ == '__main__': unittest.main() |