diff tests/test-url.py @ 37999:d088810c496e

tests: fix deprecation warning in test-url.py
author Augie Fackler <augie@google.com>
date Fri, 11 May 2018 00:50:21 -0400
parents 078c3eec2d5c
children 2372284d9457
line wrap: on
line diff
--- a/tests/test-url.py	Tue Apr 03 23:34:55 2018 +0900
+++ b/tests/test-url.py	Fri May 11 00:50:21 2018 -0400
@@ -237,7 +237,8 @@
 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