D4994: tests: glob away some annoying py3 differences
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Oct 12 11:24:06 EDT 2018
durin42 updated this revision to Diff 11894.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4994?vs=11876&id=11894
REVISION DETAIL
https://phab.mercurial-scm.org/D4994
AFFECTED FILES
tests/test-extension.t
CHANGE DETAILS
diff --git a/tests/test-extension.t b/tests/test-extension.t
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -553,8 +553,8 @@
uisetup(ui)
File "$TESTTMP/baduisetup.py", line 2, in uisetup
1/0
- ZeroDivisionError: integer division or modulo by zero
- *** failed to set up extension baduisetup: integer division or modulo by zero
+ ZeroDivisionError: * by zero (glob)
+ *** failed to set up extension baduisetup: * by zero (glob)
Mercurial Distributed SCM (version *) (glob)
(see https://mercurial-scm.org for more information)
@@ -1757,7 +1757,7 @@
> test_unicode_default_value = $TESTTMP/test_unicode_default_value.py
> EOF
$ hg -R $TESTTMP/opt-unicode-default dummy
- *** failed to import extension test_unicode_default_value from $TESTTMP/test_unicode_default_value.py: unicode u'value' found in cmdtable.dummy
+ *** failed to import extension test_unicode_default_value from $TESTTMP/test_unicode_default_value.py: unicode *'value' found in cmdtable.dummy (glob)
*** (use b'' to make it byte string)
hg: unknown command 'dummy'
(did you mean summary?)
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list