Skip to content
Snippets Groups Projects
Commit cde37ed0 authored by Georges Racinet's avatar Georges Racinet
Browse files

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.
parent e2472b12
No related branches found
No related tags found
No related merge requests found
......@@ -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]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment