From: Tim Peters Date: Mon, 7 Oct 2002 01:20:52 +0000 (+0000) Subject: This has no hope of working under -O. Skip it then instead of failing. X-Git-Tag: v2.2.2b1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cec12549862eb62923ea0641c835064a67c378f0;p=thirdparty%2FPython%2Fcpython.git This has no hope of working under -O. Skip it then instead of failing. --- 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