Mercurial > public > mercurial-scm > hg-stable
diff tests/test-url-rev.t @ 15246:7b15dd9125b3
httprepo: make __del__ more stable in error situations
Some errors could leave self.urlopener uninitialized and thus cause strange
crashes in __del__.
This member variable is now "declared statically" and checked for assignment
before use.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 13 Oct 2011 04:27:49 +0200 |
parents | 7c26ce9edbd2 |
children | 9910f60a37ee 41885892796e |
line wrap: on
line diff
--- a/tests/test-url-rev.t Sun Oct 31 18:29:55 2010 +0100 +++ b/tests/test-url-rev.t Thu Oct 13 04:27:49 2011 +0200 @@ -200,4 +200,8 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: new head of branch foo +Test handling of invalid urls + $ hg id http://foo/?bar + abort: unsupported URL component: "bar" + [255]