py3: get around IOError variants in test-commandserver.t
authorYuya Nishihara <yuya@tcha.org>
Tue, 16 Oct 2018 08:48:23 +0200
changeset 40362 2f1edf5e0a4b
parent 40361 b7de186efd82
child 40363 c3ad9ef0876c
py3: get around IOError variants in test-commandserver.t
contrib/python3-whitelist
tests/test-commandserver.t
--- a/contrib/python3-whitelist	Tue Oct 16 08:41:58 2018 +0200
+++ b/contrib/python3-whitelist	Tue Oct 16 08:48:23 2018 +0200
@@ -78,6 +78,7 @@
 test-clone.t
 test-clonebundles.t
 test-close-head.t
+test-commandserver.t
 test-commit-amend.t
 test-commit-interactive.t
 test-commit-multiple.t
--- a/tests/test-commandserver.t	Tue Oct 16 08:41:58 2018 +0200
+++ b/tests/test-commandserver.t	Tue Oct 16 08:48:23 2018 +0200
@@ -793,13 +793,13 @@
   ...             break
   >>> check(earlycrash, server.connect)
   e, 'Traceback (most recent call last):\n'
-  e, "IOError: *" (glob)
+  e, "(IOError|FileNotFoundError): .*" (re)
   >>> server.shutdown()
 
   $ cat .hg/server.log | grep -v '^  '
   listening at .hg/server.sock
   Traceback (most recent call last):
-  IOError: * (glob)
+  (IOError|FileNotFoundError): .* (re)
   killed!
 #endif
 #if no-unix-socket