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

login
register
mail settings
Submitter Matt Harbison
Date May 11, 2018, 5:11 a.m.
Message ID <54f066b6236a89b69c46.1526015474@Envy>
Download mbox | patch
Permalink /patch/31493/
State Accepted
Headers show

Comments

Matt Harbison - May 11, 2018, 5:11 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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.

Patch

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