* Python2.6 support was broken by the fixup feature.
authorRobert Collins <robertc@robertcollins.net>
Mon, 7 May 2012 22:53:53 +0000 (10:53 +1200)
committerRobert Collins <robertc@robertcollins.net>
Mon, 7 May 2012 22:53:53 +0000 (10:53 +1200)
  (Arfrever Frehtes Taifersar Arahesis, #987490)

NEWS
python/subunit/tests/test_subunit_filter.py

diff --git a/NEWS b/NEWS
index 2fd1ce7..8c2211f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,9 @@ BUG FIXES
   '--no-xfail', '--no-passthrough, '--no-success', and gives you just the
   failure stream. (John Arbash Meinel)
 
+* Python2.6 support was broken by the fixup feature.
+  (Arfrever Frehtes Taifersar Arahesis, #987490)
+
 * Python3 support regressed in trunk.
   (Arfrever Frehtes Taifersar Arahesis, #987514)
 
index 3d63ff5..33b9248 100644 (file)
@@ -231,7 +231,7 @@ xfail todo
         self.run_tests(result_filter, subunit_stream)
         foo = subunit.RemotedTestCase('foo')
         self.maxDiff = None
-        self.assertSequenceEqual(
+        self.assertEqual(
             [('time', date_a),
              ('time', date_b),
              ('startTest', foo),
@@ -259,7 +259,7 @@ xfail todo
         result_filter.stopTestRun()
         foo = subunit.RemotedTestCase('foo')
         self.maxDiff = None
-        self.assertSequenceEqual(
+        self.assertEqual(
             [('startTestRun',),
              ('time', date_a),
              ('time', date_c),
@@ -279,6 +279,10 @@ xfail todo
              ('addSkip', foo, {}),
              ('stopTest', foo), ], result._events)
 
+    if sys.version_info < (2, 7):
+        # These tests require Python >=2.7.
+        del test_fixup_expected_failures, test_fixup_expected_errors, test_fixup_unexpected_success
+
 
 class TestFilterCommand(TestCase):