Rev 5913: Fix spurious windows-specific test failure in file:///home/vila/src/bzr/bugs/788131-location-urls-windows/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed May 25 14:17:28 UTC 2011
At file:///home/vila/src/bzr/bugs/788131-location-urls-windows/
------------------------------------------------------------
revno: 5913
revision-id: v.ladeuil+lp at free.fr-20110525141727-10nd2es89prenakf
parent: pqm at pqm.ubuntu.com-20110524200712-z0ay7c4lsbg1x7qs
fixes bug(s): https://launchpad.net/bugs/788131
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 788131-location-urls-windows
timestamp: Wed 2011-05-25 16:17:27 +0200
message:
Fix spurious windows-specific test failure
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-05-18 02:47:33 +0000
+++ b/bzrlib/tests/test_config.py 2011-05-25 14:17:27 +0000
@@ -2200,8 +2200,14 @@
def test_file_urls_are_normalized(self):
store = self.get_store('foo.conf')
- matcher = config.LocationMatcher(store, 'file:///dir/subdir')
- self.assertEquals('/dir/subdir', matcher.location)
+ if sys.platform == 'win32':
+ expected_url = 'file:///C:/dir/subdir'
+ expected_location = 'C:/dir/subdir'
+ else:
+ expected_url = 'file:///dir/subdir'
+ expected_location = '/dir/subdir'
+ matcher = config.LocationMatcher(store, expected_url)
+ self.assertEquals(expected_location, matcher.location)
class TestStackGet(tests.TestCase):
=== modified file 'doc/en/release-notes/bzr-2.4.txt'
--- a/doc/en/release-notes/bzr-2.4.txt 2011-05-21 17:50:49 +0000
+++ b/doc/en/release-notes/bzr-2.4.txt 2011-05-25 14:17:27 +0000
@@ -177,6 +177,10 @@
restoring the wt_scenarios helper that was accidentally deleted.
(Vincent Ladeuil, #783472)
+* Windows locations are different and should be tested accordingly.
+ (Vincent Ladeuil, #788131)
+
+
bzr 2.4b2
#########
More information about the bazaar-commits
mailing list