Patchwork [9,of,9] py3: get around IOError variants in test-commandserver.t

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 18, 2018, 12:33 p.m.
Message ID <17abd7febf13b99845f0.1539865980@mimosa>
Download mbox | patch
Permalink /patch/36141/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 18, 2018, 12:33 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1539672503 -7200
#      Tue Oct 16 08:48:23 2018 +0200
# Node ID 17abd7febf13b99845f0305e92cfa6e321810a99
# Parent  570e96ab987597acf146a6636f11f70494413745
py3: get around IOError variants in test-commandserver.t

Patch

diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -78,6 +78,7 @@  test-clone-update-order.t
 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
diff --git a/tests/test-commandserver.t b/tests/test-commandserver.t
--- a/tests/test-commandserver.t
+++ b/tests/test-commandserver.t
@@ -793,13 +793,13 @@  unix domain socket:
   ...             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