[Python-checkins] python/dist/src/Lib/test test_trace.py,1.4.2.2,1.4.2.3

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 06 Oct 2002 18:20:54 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv26753/Lib/test

Modified Files:
      Tag: release22-maint
	test_trace.py 
Log Message:
This has no hope of working under -O.  Skip it then instead of failing.


Index: test_trace.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_trace.py,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -C2 -d -r1.4.2.2 -r1.4.2.3
*** test_trace.py	7 Oct 2002 01:18:17 -0000	1.4.2.2
--- test_trace.py	7 Oct 2002 01:20:52 -0000	1.4.2.3
***************
*** 6,9 ****
--- 6,12 ----
  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():