Mercurial > hg-stable
comparison tests/test-url.py @ 45687:223296268c4e
tests: fix test-url.py on py3, broken by D9179
Differential Revision: https://phab.mercurial-scm.org/D9180
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 09 Oct 2020 08:08:54 -0700 |
parents | d2e1dcd4490d |
children | ffd3e823a7e5 |
comparison
equal
deleted
inserted
replaced
45686:17a12f53dd72 | 45687:223296268c4e |
---|---|
390 Non-localhost file URL: | 390 Non-localhost file URL: |
391 | 391 |
392 >>> try: | 392 >>> try: |
393 ... u = url(b'file://mercurial-scm.org/foo') | 393 ... u = url(b'file://mercurial-scm.org/foo') |
394 ... except error.Abort as e: | 394 ... except error.Abort as e: |
395 ... e.message | 395 ... pycompat.bytestr(e.message) |
396 'file:// URLs can only refer to localhost' | 396 'file:// URLs can only refer to localhost' |
397 | 397 |
398 Empty URL: | 398 Empty URL: |
399 | 399 |
400 >>> u = url(b'') | 400 >>> u = url(b'') |