tests: fix http-bad-server expected errors for python 3.10 (
issue6643)
The format of the error message changed with this version of Python.
This also removes obsolete Python 3 checks.
--- a/tests/test-http-bad-server.t Thu Sep 22 16:50:30 2022 -0700
+++ b/tests/test-http-bad-server.t Thu Sep 22 16:09:53 2022 +0200
@@ -659,7 +659,7 @@
$ hg clone http://localhost:$HGPORT/ clone
requesting all changes
- abort: HTTP request error (incomplete response) (py3 !)
+ abort: HTTP request error (incomplete response*) (glob)
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
[255]
@@ -703,7 +703,7 @@
$ hg clone http://localhost:$HGPORT/ clone
requesting all changes
- abort: HTTP request error (incomplete response) (py3 !)
+ abort: HTTP request error (incomplete response*) (glob)
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
[255]
@@ -904,7 +904,7 @@
adding changesets
transaction abort!
rollback completed
- abort: HTTP request error (incomplete response) (py3 !)
+ abort: HTTP request error (incomplete response*) (glob)
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
[255]
@@ -1021,7 +1021,7 @@
adding file changes
transaction abort!
rollback completed
- abort: HTTP request error (incomplete response) (py3 !)
+ abort: HTTP request error (incomplete response*) (glob)
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
[255]