Skip to content

Commit 695a90e

Browse files
authored
PYTHON-2987 Fix test unicode repr on PyPy 7.3.7 (#770)
1 parent 42324c6 commit 695a90e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def test_operation_failure(self):
4545
self.assertIn("full error", traceback.format_exc())
4646

4747
def _test_unicode_strs(self, exc):
48-
if 'PyPy' in sys.version:
49-
# PyPy displays unicode in repr differently.
48+
if sys.implementation.name == 'pypy' and sys.implementation.version < (7, 3, 7):
49+
# PyPy used to display unicode in repr differently.
5050
self.assertEqual("unicode \U0001f40d, full error: {"
5151
"'errmsg': 'unicode \\U0001f40d'}", str(exc))
5252
else:

0 commit comments

Comments
 (0)