changeset 41762:cde37ed080c9

tests: fixed test too dependent on actual exception wording On one of the machines I use to run the tests prior to submission, the default Python is 2.7.5, with the following wording: must be encoded string without NULL bytes, not str This third form (and possible future ones) are motivation to use a wider catching regexp.
author Georges Racinet <gracinet@anybox.fr>
date Thu, 21 Feb 2019 11:23:10 +0100
parents e2472b12c842
children 6843379bf99e
files tests/test-remotefilelog-gc.t
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-remotefilelog-gc.t	Sun Jan 13 20:27:00 2019 -0500
+++ b/tests/test-remotefilelog-gc.t	Thu Feb 21 11:23:10 2019 +0100
@@ -108,6 +108,5 @@
 
   $ printf "asdas\0das" >> $CACHEDIR/repos
   $ hg gc
-  abort: invalid path asdas\x00da: stat: embedded null character in path (esc) (py3 !)
-  abort: invalid path asdas\x00da: stat() argument 1 must be encoded string without null bytes, not str (esc) (no-py3 !)
+  abort: invalid path asdas\x00da: .*(null|NULL).* (re)
   [255]