[Python-checkins] python/dist/src/Lib/test re_tests.py,1.32,1.33 regrtest.py,1.127,1.128 test_aepack.py,1.1,1.2 test_bisect.py,1.6,1.7 test_builtin.py,1.13,1.14 test_codeccallbacks.py,1.9,1.10 test_datetime.py,1.39,1.40 test_descr.py,1.184,1.185 test_dummy_thread.py,1.1,1.2 test_dummy_threading.py,1.1,1.2 test_locale.py,1.6,1.7 test_macfs.py,1.2,1.3 test_macostools.py,1.3,1.4 test_parser.py,1.15,1.16 test_string.py,1.22,1.23 test_sys.py,1.3,1.4 test_tarfile.py,1.2,1.3 test_userlist.py,1.7,1.8 test_xpickle.py,1.2,1.3 test_zipimport.py,1.6,1.7 test_zlib.py,1.20,1.21 tokenize_tests.py,1.5,1.6

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 18 Feb 2003 18:35:10 -0800


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

Modified Files:
	re_tests.py regrtest.py test_aepack.py test_bisect.py 
	test_builtin.py test_codeccallbacks.py test_datetime.py 
	test_descr.py test_dummy_thread.py test_dummy_threading.py 
	test_locale.py test_macfs.py test_macostools.py test_parser.py 
	test_string.py test_sys.py test_tarfile.py test_userlist.py 
	test_xpickle.py test_zipimport.py test_zlib.py 
	tokenize_tests.py 
Log Message:
Whitespace normalization.


Index: re_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/re_tests.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** re_tests.py	13 Feb 2003 03:01:18 -0000	1.32
--- re_tests.py	19 Feb 2003 02:35:04 -0000	1.33
***************
*** 554,558 ****
      ('(?<!\\\):(.*?)(?<!\\\):', 'a:bc\\:de:f', SUCCEED, 'g1', 'bc\\:de' ),
      # terminating with ' and escaping with ? as in edifact
!     ("(?<!\\?)'(.*?)(?<!\\?)'", "a'bc?'de'f", SUCCEED, 'g1', "bc?'de" ), 
  
      # Comments using the (?#...) syntax
--- 554,558 ----
      ('(?<!\\\):(.*?)(?<!\\\):', 'a:bc\\:de:f', SUCCEED, 'g1', 'bc\\:de' ),
      # terminating with ' and escaping with ? as in edifact
!     ("(?<!\\?)'(.*?)(?<!\\?)'", "a'bc?'de'f", SUCCEED, 'g1', "bc?'de" ),
  
      # Comments using the (?#...) syntax

Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.127
retrieving revision 1.128
diff -C2 -d -r1.127 -r1.128
*** regrtest.py	17 Feb 2003 21:48:47 -0000	1.127
--- regrtest.py	19 Feb 2003 02:35:05 -0000	1.128
***************
*** 934,938 ****
                  self.expected.add("test_winreg")
                  self.expected.add("test_winsound")
!     
              self.valid = True
  
--- 934,938 ----
                  self.expected.add("test_winreg")
                  self.expected.add("test_winsound")
! 
              self.valid = True
  

Index: test_aepack.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_aepack.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_aepack.py	29 Jan 2003 10:41:00 -0000	1.1
--- test_aepack.py	19 Feb 2003 02:35:05 -0000	1.2
***************
*** 54,58 ****
              unpacked = aepack.unpack(packed)
              self.assertEqual(repr(o), repr(unpacked))
!             
      def test_roundtrip_FSSpec(self):
          try:
--- 54,58 ----
              unpacked = aepack.unpack(packed)
              self.assertEqual(repr(o), repr(unpacked))
! 
      def test_roundtrip_FSSpec(self):
          try:
***************
*** 73,79 ****
          packed = aepack.pack(o)
          unpacked = aepack.unpack(packed)
!         self.assertEqual(o.FSResolveAlias(None)[0].as_pathname(), 
              unpacked.FSResolveAlias(None)[0].as_pathname())
!     
  
  def test_main():
--- 73,79 ----
          packed = aepack.pack(o)
          unpacked = aepack.unpack(packed)
!         self.assertEqual(o.FSResolveAlias(None)[0].as_pathname(),
              unpacked.FSResolveAlias(None)[0].as_pathname())
! 
  
  def test_main():

Index: test_bisect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bisect.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_bisect.py	16 Jan 2003 14:00:15 -0000	1.6
--- test_bisect.py	19 Feb 2003 02:35:05 -0000	1.7
***************
*** 215,217 ****
  if __name__ == "__main__":
      test_main(verbose=True)
- 
--- 215,216 ----

Index: test_builtin.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_builtin.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_builtin.py	10 Feb 2003 17:36:40 -0000	1.13
--- test_builtin.py	19 Feb 2003 02:35:05 -0000	1.14
***************
*** 353,360 ****
          self.assertRaises(TypeError, filter)
          class BadSeq(object):
!            def __getitem__(self, index):
!                if index<4:
!                    return 42
!                raise ValueError
          self.assertRaises(ValueError, filter, lambda x: x, BadSeq())
          def badfunc():
--- 353,360 ----
          self.assertRaises(TypeError, filter)
          class BadSeq(object):
!             def __getitem__(self, index):
!                 if index<4:
!                     return 42
!                 raise ValueError
          self.assertRaises(ValueError, filter, lambda x: x, BadSeq())
          def badfunc():
***************
*** 442,452 ****
          for (cls, inps) in inputs.iteritems():
              for (inp, exp) in inps.iteritems():
!                  # make sure the output goes through __getitem__
!                  # even if func is None
!                  self.assertEqual(
!                      filter(funcs[0], cls(inp)),
!                      filter(funcs[1], cls(inp))
!                  )
!                  for func in funcs:
                      outp = filter(func, cls(inp))
                      self.assertEqual(outp, exp)
--- 442,452 ----
          for (cls, inps) in inputs.iteritems():
              for (inp, exp) in inps.iteritems():
!                 # make sure the output goes through __getitem__
!                 # even if func is None
!                 self.assertEqual(
!                     filter(funcs[0], cls(inp)),
!                     filter(funcs[1], cls(inp))
!                 )
!                 for func in funcs:
                      outp = filter(func, cls(inp))
                      self.assertEqual(outp, exp)
***************
*** 1040,1047 ****
  
      def test_setattr(self):
!        setattr(sys, 'spam', 1)
!        self.assertEqual(sys.spam, 1)
!        self.assertRaises(TypeError, setattr, sys, 1, 'spam')
!        self.assertRaises(TypeError, setattr)
  
      def test_str(self):
--- 1040,1047 ----
  
      def test_setattr(self):
!         setattr(sys, 'spam', 1)
!         self.assertEqual(sys.spam, 1)
!         self.assertRaises(TypeError, setattr, sys, 1, 'spam')
!         self.assertRaises(TypeError, setattr)
  
      def test_str(self):

Index: test_codeccallbacks.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codeccallbacks.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_codeccallbacks.py	31 Jan 2003 17:19:07 -0000	1.9
--- test_codeccallbacks.py	19 Feb 2003 02:35:05 -0000	1.10
***************
*** 12,16 ****
          realpos = oldpos
          if realpos<0:
!            realpos = len(exc.object) + realpos
          # if we don't advance this time, terminate on the next call
          # otherwise we'd get an endless loop
--- 12,16 ----
          realpos = oldpos
          if realpos<0:
!             realpos = len(exc.object) + realpos
          # if we don't advance this time, terminate on the next call
          # otherwise we'd get an endless loop
***************
*** 533,537 ****
          v = (1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000)
          if sys.maxunicode>=100000:
!              v += (100000, 500000, 1000000)
          s = u"".join([unichr(x) for x in v])
          codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)
--- 533,537 ----
          v = (1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000)
          if sys.maxunicode>=100000:
!             v += (100000, 500000, 1000000)
          s = u"".join([unichr(x) for x in v])
          codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)

Index: test_datetime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_datetime.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** test_datetime.py	8 Feb 2003 03:46:31 -0000	1.39
--- test_datetime.py	19 Feb 2003 02:35:05 -0000	1.40
***************
*** 104,110 ****
          self.failUnless(type(orig) is tzinfo)
          for pickler, unpickler, proto in pickle_choices:
!                 green = pickler.dumps(orig, proto)
!                 derived = unpickler.loads(green)
!                 self.failUnless(type(derived) is tzinfo)
  
      def test_pickling_subclass(self):
--- 104,110 ----
          self.failUnless(type(orig) is tzinfo)
          for pickler, unpickler, proto in pickle_choices:
!             green = pickler.dumps(orig, proto)
!             derived = unpickler.loads(green)
!             self.failUnless(type(derived) is tzinfo)
  
      def test_pickling_subclass(self):
***************
*** 117,126 ****
          self.assertEqual(orig.tzname(None), 'cookie')
          for pickler, unpickler, proto in pickle_choices:
!                 green = pickler.dumps(orig, proto)
!                 derived = unpickler.loads(green)
!                 self.failUnless(isinstance(derived, tzinfo))
!                 self.failUnless(type(derived) is PicklableFixedOffset)
!                 self.assertEqual(derived.utcoffset(None), offset)
!                 self.assertEqual(derived.tzname(None), 'cookie')
  
  #############################################################################
--- 117,126 ----
          self.assertEqual(orig.tzname(None), 'cookie')
          for pickler, unpickler, proto in pickle_choices:
!             green = pickler.dumps(orig, proto)
!             derived = unpickler.loads(green)
!             self.failUnless(isinstance(derived, tzinfo))
!             self.failUnless(type(derived) is PicklableFixedOffset)
!             self.assertEqual(derived.utcoffset(None), offset)
!             self.assertEqual(derived.tzname(None), 'cookie')
  
  #############################################################################
***************
*** 518,523 ****
              self.assertEqual(d, fromord)
              if hasattr(fromord, "hour"):
!                 # if we're checking something fancier than a date, verify
!                 # the extra fields have been zeroed out
                  self.assertEqual(fromord.hour, 0)
                  self.assertEqual(fromord.minute, 0)
--- 518,523 ----
              self.assertEqual(d, fromord)
              if hasattr(fromord, "hour"):
!             # if we're checking something fancier than a date, verify
!             # the extra fields have been zeroed out
                  self.assertEqual(fromord.hour, 0)
                  self.assertEqual(fromord.minute, 0)

Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.184
retrieving revision 1.185
diff -C2 -d -r1.184 -r1.185
*** test_descr.py	13 Feb 2003 16:25:05 -0000	1.184
--- test_descr.py	19 Feb 2003 02:35:05 -0000	1.185
***************
*** 1838,1842 ****
              if not self:
                  return 'EPS'
!             return self 
  
      # sys.stdout needs to be the original to trigger the recursion bug
--- 1838,1842 ----
              if not self:
                  return 'EPS'
!             return self
  
      # sys.stdout needs to be the original to trigger the recursion bug

Index: test_dummy_thread.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_dummy_thread.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_dummy_thread.py	30 Dec 2002 22:30:22 -0000	1.1
--- test_dummy_thread.py	19 Feb 2003 02:35:05 -0000	1.2
***************
*** 32,36 ****
          self.failUnless(not self.lock.locked(),
                          "Lock object did not release properly.")
!     
      def test_improper_release(self):
          #Make sure release of an unlocked thread raises _thread.error
--- 32,36 ----
          self.failUnless(not self.lock.locked(),
                          "Lock object did not release properly.")
! 
      def test_improper_release(self):
          #Make sure release of an unlocked thread raises _thread.error
***************
*** 59,63 ****
          self.failUnless(self.lock.acquire(1) is True,
                          "Unconditional locking did not return True.")
!     
      def test_uncond_acquire_blocking(self):
          #Make sure that unconditional acquiring of a locked lock blocks.
--- 59,63 ----
          self.failUnless(self.lock.acquire(1) is True,
                          "Unconditional locking did not return True.")
! 
      def test_uncond_acquire_blocking(self):
          #Make sure that unconditional acquiring of a locked lock blocks.
***************
*** 126,130 ****
                          "Argument passing for thread creation using both tuple"
                          " and kwargs failed")
!     
      def test_multi_creation(self):
          #Make sure multiple threads can be created.
--- 126,130 ----
                          "Argument passing for thread creation using both tuple"
                          " and kwargs failed")
! 
      def test_multi_creation(self):
          #Make sure multiple threads can be created.
***************
*** 133,137 ****
              time.sleep(delay)
              queue.put(_thread.get_ident())
!         
          thread_count = 5
          delay = 1.5
--- 133,137 ----
              time.sleep(delay)
              queue.put(_thread.get_ident())
! 
          thread_count = 5
          delay = 1.5
***************
*** 148,152 ****
              print 'done'
          self.failUnless(testing_queue.qsize() == thread_count,
!                         "Not all %s threads executed properly after %s sec." % 
                          (thread_count, delay))
  
--- 148,152 ----
              print 'done'
          self.failUnless(testing_queue.qsize() == thread_count,
!                         "Not all %s threads executed properly after %s sec." %
                          (thread_count, delay))
  

Index: test_dummy_threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_dummy_threading.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_dummy_threading.py	30 Dec 2002 22:30:22 -0000	1.1
--- test_dummy_threading.py	19 Feb 2003 02:35:05 -0000	1.2
***************
*** 10,14 ****
  
  class TestThread(_threading.Thread):
!     
      def run(self):
          global running
--- 10,14 ----
  
  class TestThread(_threading.Thread):
! 
      def run(self):
          global running
***************
*** 55,59 ****
      global threads
      threads = []
!     
      starttasks()
  
--- 55,59 ----
      global threads
      threads = []
! 
      starttasks()
  

Index: test_locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_locale.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_locale.py	30 Dec 2002 23:02:55 -0000	1.6
--- test_locale.py	19 Feb 2003 02:35:05 -0000	1.7
***************
*** 4,8 ****
  
  if sys.platform == 'darwin':
! 	raise TestSkipped("Locale support on MacOSX is minimal and cannot be tested")
  oldlocale = locale.setlocale(locale.LC_NUMERIC)
  
--- 4,8 ----
  
  if sys.platform == 'darwin':
!     raise TestSkipped("Locale support on MacOSX is minimal and cannot be tested")
  oldlocale = locale.setlocale(locale.LC_NUMERIC)
  

Index: test_macfs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_macfs.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_macfs.py	5 Feb 2003 11:14:16 -0000	1.2
--- test_macfs.py	19 Feb 2003 02:35:05 -0000	1.3
***************
*** 23,31 ****
          fss = macfs.FSSpec(test_support.TESTFN)
          self.assertEqual(os.path.realpath(test_support.TESTFN), fss.as_pathname())
!         
      def test_fsref(self):
          fsr = macfs.FSRef(test_support.TESTFN)
          self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname())
!         
      def test_coercion(self):
          fss = macfs.FSSpec(test_support.TESTFN)
--- 23,31 ----
          fss = macfs.FSSpec(test_support.TESTFN)
          self.assertEqual(os.path.realpath(test_support.TESTFN), fss.as_pathname())
! 
      def test_fsref(self):
          fsr = macfs.FSRef(test_support.TESTFN)
          self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname())
! 
      def test_coercion(self):
          fss = macfs.FSSpec(test_support.TESTFN)
***************
*** 35,39 ****
          self.assertEqual(fss.as_pathname(), fss2.as_pathname())
          self.assertEqual(fsr.as_pathname(), fsr2.as_pathname())
!         
      def test_dates(self):
          import time
--- 35,39 ----
          self.assertEqual(fss.as_pathname(), fss2.as_pathname())
          self.assertEqual(fsr.as_pathname(), fsr2.as_pathname())
! 
      def test_dates(self):
          import time
***************
*** 43,47 ****
          dates = fss.GetDates()
          self.assertEqual(dates, (now, now-1, now-2))
!         
      def test_ctor_type(self):
          fss = macfs.FSSpec(test_support.TESTFN)
--- 43,47 ----
          dates = fss.GetDates()
          self.assertEqual(dates, (now, now-1, now-2))
! 
      def test_ctor_type(self):
          fss = macfs.FSSpec(test_support.TESTFN)
***************
*** 49,53 ****
          filecr, filetp = fss.GetCreatorType()
          self.assertEqual((filecr, filetp), ('Pyth', 'TEXT'))
!         
      def test_alias(self):
          fss = macfs.FSSpec(test_support.TESTFN)
--- 49,53 ----
          filecr, filetp = fss.GetCreatorType()
          self.assertEqual((filecr, filetp), ('Pyth', 'TEXT'))
! 
      def test_alias(self):
          fss = macfs.FSSpec(test_support.TESTFN)
***************
*** 55,64 ****
          fss2, changed = alias.Resolve()
          self.assertEqual(changed, 0)
!         self.assertEqual(fss.as_pathname(), fss2.as_pathname())     
!         
!         
      def test_fss_alias(self):
          fss = macfs.FSSpec(test_support.TESTFN)
!                 
  
  def test_main():
--- 55,64 ----
          fss2, changed = alias.Resolve()
          self.assertEqual(changed, 0)
!         self.assertEqual(fss.as_pathname(), fss2.as_pathname())
! 
! 
      def test_fss_alias(self):
          fss = macfs.FSSpec(test_support.TESTFN)
! 
  
  def test_main():

Index: test_macostools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_macostools.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_macostools.py	5 Feb 2003 11:14:15 -0000	1.3
--- test_macostools.py	19 Feb 2003 02:35:06 -0000	1.4
***************
*** 30,34 ****
          except:
              pass
!             
      def compareData(self):
          fp = open(test_support.TESTFN, 'r')
--- 30,34 ----
          except:
              pass
! 
      def compareData(self):
          fp = open(test_support.TESTFN, 'r')
***************
*** 49,57 ****
              return 'Resource forks differ'
          return ''
!             
      def test_touched(self):
          # This really only tests that nothing unforeseen happens.
          macostools.touched(test_support.TESTFN)
!         
      def test_copy(self):
          try:
--- 49,57 ----
              return 'Resource forks differ'
          return ''
! 
      def test_touched(self):
          # This really only tests that nothing unforeseen happens.
          macostools.touched(test_support.TESTFN)
! 
      def test_copy(self):
          try:
***************
*** 61,65 ****
          macostools.copy(test_support.TESTFN, TESTFN2)
          self.assertEqual(self.compareData(), '')
!         
      def test_mkalias(self):
          try:
--- 61,65 ----
          macostools.copy(test_support.TESTFN, TESTFN2)
          self.assertEqual(self.compareData(), '')
! 
      def test_mkalias(self):
          try:
***************
*** 70,74 ****
          fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
          self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
!         
      def test_mkalias_relative(self):
          try:
--- 70,74 ----
          fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
          self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
! 
      def test_mkalias_relative(self):
          try:
***************
*** 79,84 ****
          fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
          self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
!         
!     
  def test_main():
      test_support.run_unittest(TestMacostools)
--- 79,84 ----
          fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
          self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
! 
! 
  def test_main():
      test_support.run_unittest(TestMacostools)

Index: test_parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_parser.py	10 Feb 2003 01:54:06 -0000	1.15
--- test_parser.py	19 Feb 2003 02:35:06 -0000	1.16
***************
*** 371,375 ****
                     (282, (1, 'foo'))), (4, ''))),
                  (4, ''),
!                 (0, '')) 
          self.check_bad_tree(tree, "malformed global ast")
  
--- 371,375 ----
                     (282, (1, 'foo'))), (4, ''))),
                  (4, ''),
!                 (0, ''))
          self.check_bad_tree(tree, "malformed global ast")
  

Index: test_string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_string.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** test_string.py	30 Dec 2002 10:50:32 -0000	1.22
--- test_string.py	19 Feb 2003 02:35:06 -0000	1.23
***************
*** 83,85 ****
              #print result
              pass
-     
--- 83,84 ----

Index: test_sys.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sys.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_sys.py	18 Feb 2003 15:22:10 -0000	1.3
--- test_sys.py	19 Feb 2003 02:35:06 -0000	1.4
***************
*** 128,143 ****
  
      def test_setcheckinterval(self):
!          self.assertRaises(TypeError, sys.setcheckinterval)
!          sys.setcheckinterval(120)
!          sys.setcheckinterval(100)
  
      def test_recursionlimit(self):
!          self.assertRaises(TypeError, sys.getrecursionlimit, 42)
!          oldlimit = sys.getrecursionlimit()
!          self.assertRaises(TypeError, sys.setrecursionlimit)
!          self.assertRaises(ValueError, sys.setrecursionlimit, -42)
!          sys.setrecursionlimit(10000)
!          self.assertEqual(sys.getrecursionlimit(), 10000)
!          sys.setrecursionlimit(oldlimit)
  
      def test_getwindowsversion(self):
--- 128,143 ----
  
      def test_setcheckinterval(self):
!         self.assertRaises(TypeError, sys.setcheckinterval)
!         sys.setcheckinterval(120)
!         sys.setcheckinterval(100)
  
      def test_recursionlimit(self):
!         self.assertRaises(TypeError, sys.getrecursionlimit, 42)
!         oldlimit = sys.getrecursionlimit()
!         self.assertRaises(TypeError, sys.setrecursionlimit)
!         self.assertRaises(ValueError, sys.setrecursionlimit, -42)
!         sys.setrecursionlimit(10000)
!         self.assertEqual(sys.getrecursionlimit(), 10000)
!         sys.setrecursionlimit(oldlimit)
  
      def test_getwindowsversion(self):

Index: test_tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tarfile.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_tarfile.py	17 Feb 2003 14:51:41 -0000	1.2
--- test_tarfile.py	19 Feb 2003 02:35:06 -0000	1.3
***************
*** 22,25 ****
--- 22,26 ----
  
  testtar = path("testtar.tar")
+ print testtar
  tempdir = path("testtar.dir")
  tempname = path("testtar.tmp")

Index: test_userlist.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_userlist.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_userlist.py	13 Feb 2003 18:07:43 -0000	1.7
--- test_userlist.py	19 Feb 2003 02:35:06 -0000	1.8
***************
*** 259,261 ****
  if __name__ == "__main__":
      test_main()
- 
--- 259,260 ----

Index: test_xpickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_xpickle.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_xpickle.py	13 Feb 2003 19:37:19 -0000	1.2
--- test_xpickle.py	19 Feb 2003 02:35:06 -0000	1.3
***************
*** 40,44 ****
                   DumpPickle_LoadCPickle,
                  ):
!          suite.addTest(unittest.makeSuite(test))
      test_support.run_suite(suite)
  
--- 40,44 ----
                   DumpPickle_LoadCPickle,
                  ):
!         suite.addTest(unittest.makeSuite(test))
      test_support.run_suite(suite)
  

Index: test_zipimport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zipimport.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_zipimport.py	17 Feb 2003 18:05:20 -0000	1.6
--- test_zipimport.py	19 Feb 2003 02:35:06 -0000	1.7
***************
*** 17,25 ****
      data = marshal.dumps(co)
      if type(mtime) is type(0.0):
!     	# Mac mtimes need a bit of special casing
!     	if mtime < 0x7fffffff:
!     		mtime = int(mtime)
!     	else:
!     		mtime = int(-0x100000000L + long(mtime))
      pyc = imp.get_magic() + struct.pack("<i", int(mtime)) + data
      return pyc
--- 17,25 ----
      data = marshal.dumps(co)
      if type(mtime) is type(0.0):
!         # Mac mtimes need a bit of special casing
!         if mtime < 0x7fffffff:
!             mtime = int(mtime)
!         else:
!             mtime = int(-0x100000000L + long(mtime))
      pyc = imp.get_magic() + struct.pack("<i", int(mtime)) + data
      return pyc

Index: test_zlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zlib.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** test_zlib.py	3 Feb 2003 20:45:48 -0000	1.20
--- test_zlib.py	19 Feb 2003 02:35:06 -0000	1.21
***************
*** 104,108 ****
          for level in range(10):
              length = len(zlib.compress(data, level))
!             self.failUnless(length <= last, 
                              'compress level %d more effective than %d!' % (
                                              level-1, level))
--- 104,108 ----
          for level in range(10):
              length = len(zlib.compress(data, level))
!             self.failUnless(length <= last,
                              'compress level %d more effective than %d!' % (
                                              level-1, level))
***************
*** 507,509 ****
      su.addTest(ut.makeSuite(tz.CompressTestCase))
      ts.run_suite(su)
- 
--- 507,508 ----

Index: tokenize_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/tokenize_tests.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** tokenize_tests.py	29 Aug 2002 15:09:34 -0000	1.5
--- tokenize_tests.py	19 Feb 2003 02:35:07 -0000	1.6
***************
*** 1,4 ****
  # Tests for the 'tokenize' module.
! # Large bits stolen from test_grammar.py. 
  
  # Comments
--- 1,4 ----
  # Tests for the 'tokenize' module.
! # Large bits stolen from test_grammar.py.
  
  # Comments
***************
*** 130,144 ****
      x = 2
  if 1:
!         x = 2
  if 1:
      while 0:
!      if 0:
!            x = 2
!      x = 2
  if 0:
!   if 2:
!    while 0:
!         if 1:
!           x = 2
  
  # Operators
--- 130,144 ----
      x = 2
  if 1:
!     x = 2
  if 1:
      while 0:
!         if 0:
!             x = 2
!         x = 2
  if 0:
!     if 2:
!         while 0:
!             if 1:
!                 x = 2
  
  # Operators
***************
*** 173,175 ****
  import sys, time
  x = sys.modules['time'].time()
- 
--- 173,174 ----