[pypy-commit] pypy py3.7-bpo-30399: Undo change to trailing commas in exception repr strings in lib-python/3/test/test_gdb.py

Yannick_Jadoul pypy.commits at gmail.com
Sun Dec 29 15:37:51 EST 2019


Author: Yannick Jadoul <yannick.jadoul at belgacom.net>
Branch: py3.7-bpo-30399
Changeset: r98406:49811c96e106
Date: 2019-12-29 21:36 +0100
http://bitbucket.org/pypy/pypy/changeset/49811c96e106/

Log:	Undo change to trailing commas in exception repr strings in lib-
	python/3/test/test_gdb.py

diff --git a/lib-python/3/test/test_gdb.py b/lib-python/3/test/test_gdb.py
--- a/lib-python/3/test/test_gdb.py
+++ b/lib-python/3/test/test_gdb.py
@@ -436,7 +436,7 @@
     id(e)
 ''')
         self.assertEqual(gdb_repr,
-                         "RuntimeError('I am an error')")
+                         "RuntimeError('I am an error',)")
 
 
         # Test division by zero:
@@ -447,7 +447,7 @@
     id(e)
 ''')
         self.assertEqual(gdb_repr,
-                         "ZeroDivisionError('division by zero')")
+                         "ZeroDivisionError('division by zero',)")
 
     def test_modern_class(self):
         'Verify the pretty-printing of new-style class instances'


More information about the pypy-commit mailing list