From cec12549862eb62923ea0641c835064a67c378f0 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 7 Oct 2002 01:20:52 +0000 Subject: [PATCH] This has no hope of working under -O. Skip it then instead of failing. --- Lib/test/test_trace.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index d61be828802c..48d9240118f7 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -5,6 +5,9 @@ import unittest import sys import difflib +if not __debug__: + raise test_support.TestSkipped, "tracing not supported under -O" + # A very basic example. If this fails, we're in deep trouble. def basic(): return 1 -- 2.47.3