From bb8b1cb6af830b40f9be398d1e1bf8bdca772140 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 22 Sep 2016 09:37:39 +0000 Subject: Issue #27348: Restore “Exception: None” formatting in traceback module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a regression caused by revision 73afda5a4e4c. Also reverts the decimal test workaround added in revision 5f3dd0a2b1ab. Remove test_without_exception(). According to revision ecaafc32c500, this was added in Python 2 so that print_exc() would output “None” when called with no exception set. However print_exc() never worked like this in Python 3, and the use case is not documented. Restore TracebackCases class name (instead of SyntaxTracebackCases), because the class also tests other exceptions. --- Lib/_pydecimal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/_pydecimal.py') diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index 900a1a796c0..a5ea340e9d4 100644 --- a/Lib/_pydecimal.py +++ b/Lib/_pydecimal.py @@ -4106,7 +4106,7 @@ class Context(object): >>> context.create_decimal_from_float(3.1415926535897932) Traceback (most recent call last): ... - decimal.Inexact + decimal.Inexact: None """ d = Decimal.from_float(f) # An exact conversion -- cgit v1.2.3