diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-url.py | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-url.py')
-rw-r--r-- | tests/test-url.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/test-url.py b/tests/test-url.py index 0cf2ad6..6abe553 100644 --- a/tests/test-url.py +++ b/tests/test-url.py @@ -1,4 +1,4 @@ -import os +import sys def check(a, b): if a != b: @@ -219,15 +219,7 @@ def test_url(): >>> u <url scheme: 'file', path: 'f:oo/bar/baz'> >>> str(u) - 'file:///f:oo/bar/baz' - >>> u.localpath() - 'f:oo/bar/baz' - - >>> u = url('file://localhost/f:oo/bar/baz') - >>> u - <url scheme: 'file', host: 'localhost', path: 'f:oo/bar/baz'> - >>> str(u) - 'file://localhost/f:oo/bar/baz' + 'file:f%3Aoo/bar/baz' >>> u.localpath() 'f:oo/bar/baz' @@ -240,7 +232,4 @@ def test_url(): 'foo/bar/baz' """ -if 'TERM' in os.environ: - del os.environ['TERM'] - doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE) |