[Python-checkins] CVS: python/dist/src/Lib/test test_fork1.py,1.5,1.6

Fred L. Drake python-dev@python.org
Tue, 15 Aug 2000 11:52:35 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv31586/Lib/test

Modified Files:
	test_fork1.py 
Log Message:

Chris Herborth <chrish@pobox.com>:
Minor updates for BeOS R5.

Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding
change in BeOS/README (by Fred).

This closes SourceForge patch #100978.


Index: test_fork1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_fork1.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_fork1.py	2000/08/04 13:34:43	1.5
--- test_fork1.py	2000/08/15 18:52:33	1.6
***************
*** 7,14 ****
--- 7,23 ----
  active threads survive in the child after a fork(); this is an error.
  
+ On BeOS, you CANNOT mix threads and fork(), the behaviour is undefined.
+ That's OK, fork() is a grotesque hack anyway. ;-) [cjh]
+ 
  """
  
  import os, sys, time, thread
  from test_support import TestSkipped
+ 
+ try:
+     if os.uname()[0] == "BeOS":
+         raise TestSkipped, "can't mix os.fork with threads on BeOS"
+ except AttributeError:
+     pass
  
  try: