D4697: tests: use assertTrue() instead of assert_() in test-bdiff.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Sep 24 01:50:29 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe961f18a0094: tests: use assertTrue() instead of assert_() in test-bdiff.py (authored by pulkit, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D4697?vs=11293&id=11299#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4697?vs=11293&id=11299

REVISION DETAIL
  https://phab.mercurial-scm.org/D4697

AFFECTED FILES
  contrib/python3-whitelist
  tests/test-bdiff.py

CHANGE DETAILS

diff --git a/tests/test-bdiff.py b/tests/test-bdiff.py
--- a/tests/test-bdiff.py
+++ b/tests/test-bdiff.py
@@ -99,9 +99,9 @@
                      diffreplace(12, 12, b'', b'b\nc\n.\n'),
                      b'd\ne\n',
                      diffreplace(16, 18, b'.\n', b''), b'f\n']
-        self.assert_(got in (want_c, want_pure),
-                     'got: %r, wanted either %r or %r' % (
-                         got, want_c, want_pure))
+        self.assertTrue(got in (want_c, want_pure),
+                        'got: %r, wanted either %r or %r' % (
+                            got, want_c, want_pure))
 
     def test_fixws(self):
         cases = [
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -22,6 +22,7 @@
 test-backwards-remove.t
 test-bad-pull.t
 test-basic.t
+test-bdiff.py
 test-bheads.t
 test-bisect.t
 test-bisect2.t



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list