]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
This has no hope of working under -O. Skip it then instead of failing.
authorTim Peters <tim.peters@gmail.com>
Mon, 7 Oct 2002 01:20:52 +0000 (01:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 7 Oct 2002 01:20:52 +0000 (01:20 +0000)
Lib/test/test_trace.py

index d61be828802cd4f2d2aea451c2ebb06a4a3ef0fb..48d9240118f7a35e1640323d31015711951c4736 100644 (file)
@@ -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