[PATCH 01 of 12] test-url: stop using the deprecated util.forcebytestr()

Matt Harbison mharbison72 at gmail.com
Fri May 11 05:11:14 UTC 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1526012997 14400
#      Fri May 11 00:29:57 2018 -0400
# Node ID 54f066b6236a89b69c468a649d199059a104cb40
# Parent  15416dad7cee895af196f7385513507d7eb4f5ee
test-url: stop using the deprecated util.forcebytestr()

This should fix the recent test failures.

diff --git a/tests/test-url.py b/tests/test-url.py
--- a/tests/test-url.py
+++ b/tests/test-url.py
@@ -237,7 +237,8 @@ check(_verifycert({'subject': (((u'commo
 def test_url():
     """
     >>> from mercurial import error, pycompat
-    >>> from mercurial.util import forcebytestr, url
+    >>> from mercurial.util import url
+    >>> from mercurial.utils.stringutil import forcebytestr
 
     This tests for edge cases in url.URL's parsing algorithm. Most of
     these aren't useful for documentation purposes, so they aren't


More information about the Mercurial-devel mailing list