Patchwork D9180: tests: fix test-url.py on py3, broken by D9179

login
register
mail settings
Submitter phabricator
Date Oct. 9, 2020, 3:09 p.m.
Message ID <differential-rev-PHID-DREV-dgiryk65noywrnmgljtb-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47417/
State Superseded
Headers show

Comments

phabricator - Oct. 9, 2020, 3:09 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-url.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-url.py b/tests/test-url.py
--- a/tests/test-url.py
+++ b/tests/test-url.py
@@ -392,7 +392,7 @@ 
     >>> try:
     ...   u = url(b'file://mercurial-scm.org/foo')
     ... except error.Abort as e:
-    ...   e.message
+    ...   pycompat.bytestr(e.message)
     'file:// URLs can only refer to localhost'
 
     Empty URL: