[Python-checkins] CVS: python/dist/src/Lib/test test_math.py,1.10,1.11 test_fork1.py,1.8,1.9 test_fcntl.py,1.16,1.17

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 11 Apr 2001 13:58:22 -0700


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

Modified Files:
	test_math.py test_fork1.py test_fcntl.py 
Log Message:
Unixware 7 support by Billy G. Allie (SF patch 413011)

Index: test_math.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_math.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** test_math.py	2000/12/12 23:11:42	1.10
--- test_math.py	2001/04/11 20:58:20	1.11
***************
*** 2,5 ****
--- 2,6 ----
  # XXXX Should not do tests around zero only
  
+ import sys
  from test_support import *
  
***************
*** 36,40 ****
  testit('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
  testit('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
! testit('atan2(0, 1)', math.atan2(0, 1), 0)
  testit('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
  testit('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
--- 37,44 ----
  testit('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
  testit('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
! if sys.platform in ['unixware7']:
!     testit('atan2(0, 1)', math.atan2(0, 1), math.pi)
! else:
!     testit('atan2(0, 1)', math.atan2(0, 1), 0)
  testit('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
  testit('atan2(1, 0)', math.atan2(1, 0), math.pi/2)

Index: test_fork1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_fork1.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** test_fork1.py	2001/01/30 18:35:32	1.8
--- test_fork1.py	2001/04/11 20:58:20	1.9
***************
*** 49,53 ****
      prefork_lives = alive.copy()
  
!     cpid = os.fork()
  
      if cpid == 0:
--- 49,56 ----
      prefork_lives = alive.copy()
  
!     if sys.platform in ['unixware7']:
!         cpid = os.fork1()
!     else:
!         cpid = os.fork()
  
      if cpid == 0:

Index: test_fcntl.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_fcntl.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** test_fcntl.py	2001/03/28 01:14:56	1.16
--- test_fcntl.py	2001/04/11 20:58:20	1.17
***************
*** 22,26 ****
                      'openbsd', 'openbsd2'):
      lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
! elif sys.platform in ['aix3', 'aix4', 'hp-uxB']:
      lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
  else:
--- 22,26 ----
                      'openbsd', 'openbsd2'):
      lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
! elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
      lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
  else: