comparison tests/test-remotefilelog-gc.t @ 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 8f6f5dcd46ce
children 5fadf6103790
comparison
equal deleted inserted replaced
41761:e2472b12c842 41762:cde37ed080c9
106 106
107 # Test that warning is displayed when the repo path is malformed 107 # Test that warning is displayed when the repo path is malformed
108 108
109 $ printf "asdas\0das" >> $CACHEDIR/repos 109 $ printf "asdas\0das" >> $CACHEDIR/repos
110 $ hg gc 110 $ hg gc
111 abort: invalid path asdas\x00da: stat: embedded null character in path (esc) (py3 !) 111 abort: invalid path asdas\x00da: .*(null|NULL).* (re)
112 abort: invalid path asdas\x00da: stat() argument 1 must be encoded string without null bytes, not str (esc) (no-py3 !)
113 [255] 112 [255]