pypy: fix failing test-devel-warnings.t with Pypy5.6.0
In Pypy 5.6.0, traceback exception classes are not displayed with their full
qualified name.
Instead of displaying mercurial.error.ProgrammingError, Pypy displays
ProgrammingError.
Update the test to support both version.
--- a/tests/test-devel-warnings.t Mon Jul 31 17:43:45 2017 +0200
+++ b/tests/test-devel-warnings.t Thu Jul 27 10:52:56 2017 +0200
@@ -129,7 +129,7 @@
$ hg commit -m a
$ hg stripintr 2>&1 | egrep -v '^(\*\*| )'
Traceback (most recent call last):
- mercurial.error.ProgrammingError: cannot strip from inside a transaction
+ *ProgrammingError: cannot strip from inside a transaction (glob)
$ hg oldanddeprecated
devel-warn: foorbar is deprecated, go shopping
@@ -187,7 +187,7 @@
** Extensions loaded: * (glob)
** ProgrammingError: transaction requires locking
Traceback (most recent call last):
- mercurial.error.ProgrammingError: transaction requires locking
+ *ProgrammingError: transaction requires locking (glob)
$ hg programmingerror 2>&1 | egrep -v '^ '
** Unknown exception encountered with possibly-broken third-party extension buggylocking
@@ -200,7 +200,7 @@
** ProgrammingError: something went wrong
** (try again)
Traceback (most recent call last):
- mercurial.error.ProgrammingError: something went wrong
+ *ProgrammingError: something went wrong (glob)
Old style deprecation warning