py3: add some glob to make output compatible with python 3
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 13 Oct 2018 05:17:28 +0300
changeset 40230 0b46e1aa7760
parent 40229 fed5e57c8dc7
child 40231 58d785679e15
py3: add some glob to make output compatible with python 3 This makes test-pathconflicts-basic.t and test-origbackup-conflict.t passing on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5042
contrib/python3-whitelist
tests/test-origbackup-conflict.t
tests/test-pathconflicts-basic.t
--- a/contrib/python3-whitelist	Sat Oct 13 05:14:23 2018 +0300
+++ b/contrib/python3-whitelist	Sat Oct 13 05:17:28 2018 +0300
@@ -393,6 +393,7 @@
 test-obsolete-divergent.t
 test-obsolete-tag-cache.t
 test-obsolete.t
+test-origbackup-conflict.t
 test-pager-legacy.t
 test-pager.t
 test-parents.t
@@ -402,6 +403,7 @@
 test-patchbomb-bookmark.t
 test-patchbomb-tls.t
 test-patchbomb.t
+test-pathconflicts-basic.t
 test-pathconflicts-merge.t
 test-pathconflicts-update.t
 test-pathencode.py
--- a/tests/test-origbackup-conflict.t	Sat Oct 13 05:14:23 2018 +0300
+++ b/tests/test-origbackup-conflict.t	Sat Oct 13 05:17:28 2018 +0300
@@ -129,7 +129,7 @@
   b/c: replacing untracked file
   getting b/c
   creating directory: $TESTTMP/repo/.hg/badorigbackups/b
-  abort: $ENOTDIR$: '$TESTTMP/repo/.hg/badorigbackups/b'
+  abort: $ENOTDIR$: *$TESTTMP/repo/.hg/badorigbackups/b* (glob)
   [255]
   $ cat .hg/badorigbackups
   data
--- a/tests/test-pathconflicts-basic.t	Sat Oct 13 05:14:23 2018 +0300
+++ b/tests/test-pathconflicts-basic.t	Sat Oct 13 05:17:28 2018 +0300
@@ -88,7 +88,7 @@
   $ mkdir a
   $ echo 4 > a/b
   $ hg up file2
-  abort: *: '$TESTTMP/repo/a' (glob)
+  abort: *: *$TESTTMP/repo/a* (glob)
   [255]
   $ hg up --clean file2
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved