From 419bb26ddc3017fb87cd9ce1853bc4f64f052394 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sat, 13 Feb 2016 17:55:26 +0200
Subject: [PATCH] tests/print_exception: Use exception which prints the same
 regardless of config.

NameError may either include offending name or not. Unfortunately, this
change makes test float-dependent. And using integer division leads to
different error message than CPython.
---
 tests/misc/print_exception.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/misc/print_exception.py b/tests/misc/print_exception.py
index 92c9794e8..1d3ca4cf4 100644
--- a/tests/misc/print_exception.py
+++ b/tests/misc/print_exception.py
@@ -23,7 +23,7 @@ def print_exc(e):
 
 # basic exception message
 try:
-    XXX
+    1/0
 except Exception as e:
     print('caught')
     print_exc(e)
@@ -32,7 +32,7 @@ except Exception as e:
 def f():
     g()
 def g():
-    YYY
+    2/0
 try:
     f()
 except Exception as e:
-- 
GitLab