1. 11 Nis, 2006 11 kayıt (commit)
    • Tim Peters's avatar
      Try to repair what may be the last new test failure on the · 319c47fc
      Tim Peters yazdı
      "x86 OpenBSD trunk" buildbot due to changing Python so that
      Python-exposed addresses are always non-negative.
      
      test_int_pointer_arg():  This line failed now whenever the
      box happened to assign an address to `ci` "with the sign
      bit set":
      
          self.failUnlessEqual(addressof(ci), func(byref(ci)))
      
      The problem is that the ctypes addressof() inherited "all
      addresses are non-negative now" from changes to
      PyLong_FromVoidPtr(), but byref() did not inherit that
      change and can still return a negative int.
      
      I don't know whether, or what, the ctypes implementation wants
      to do about that (possibly nothing), but in the meantime
      the test fails frequently.
      
      So, introduced a Python positive_address() function in
      the test module, that takes a purported machine address and,
      if negative, converts it to a non-negative value "with the
      same bits".  This should leave the test passing under all
      versions of Python.
      
      Belated thanks to Armin Rigo for teaching me the sick trick ;-)
      for determining the # of bits in a machine pointer via abuse
      of the struct module.
      319c47fc
    • Tim Peters's avatar
      subclasspropagation(): Squash two more bogus hash(x) == id(x) · 171b8681
      Tim Peters yazdı
      tests.  Alas, because only the "x86 OpenBSD trunk" buildbot fails
      these tests, and test_descr stops after the first failure, there's
      no sane way for me to fix these short of fixing one and then
      waiting for the buildbot to reveal the next one.
      171b8681
    • Tim Peters's avatar
      Typo repair. · 527f652a
      Tim Peters yazdı
      527f652a
    • Tim Peters's avatar
      Whitespace normalization. · 413c9226
      Tim Peters yazdı
      413c9226
    • Tim Peters's avatar
      More words on patch #837242, since 4 or 5 tests started · 3a5e8b1e
      Tim Peters yazdı
      failing on one of the 32-bit buildbot boxes because of it,
      due to tempting but always-wrong Python code.  Users
      probably have code like this too (I know I did ...).
      3a5e8b1e
    • Phillip J. Eby's avatar
      51dd7d97
    • Tim Peters's avatar
      specials(): squash another incorrect hash(x) == id(x) · 85b362f0
      Tim Peters yazdı
      test.  Add some lines that at least invoke the default
      __hash__, although there's nothing to check there beyond
      that they don't blow up.
      85b362f0
    • Phillip J. Eby's avatar
      Forgot to mark up a PEP reference · 678b8ecd
      Phillip J. Eby yazdı
      678b8ecd
    • Phillip J. Eby's avatar
      Updated the warnings, linecache, inspect, traceback, site, and doctest modules · 47032110
      Phillip J. Eby yazdı
      to work correctly with modules imported from zipfiles or via other PEP 302
      __loader__ objects.  Tests and doc updates are included.
      47032110
    • Tim Peters's avatar
      Huh. This belonged with the last checkin -- no idea why svn · 7731dfda
      Tim Peters yazdı
      didn't commit it.
      7731dfda
    • Tim Peters's avatar
      Try to repair more new buildbot failures in "x86 OpenBSD trunk", due · 6902b444
      Tim Peters yazdı
      to that id() can now return a Python long on a 32-bit box that allocates
      addresses "with the sign bit set".
      
      test_set.py test_subclass_with_custom_hash():  it's never been portably
      legal for a __hash__() method to return id(self), but on 32-bit boxes
      that never caused a problem before it became possible for id() to
      return a Python long.  Changed __hash__ here to return a Python int
      regardless of platform.
      
      test_descr.py specials():
          vereq(hash(c1), id(c1))
      has never been a correct test -- just removed it (hash() is always
      a Python int; id() may be a Python long).
      6902b444
  2. 10 Nis, 2006 20 kayıt (commit)
  3. 09 Nis, 2006 8 kayıt (commit)
  4. 08 Nis, 2006 1 kayıt (commit)
    • Tim Peters's avatar
      test_timeout(): This test was added during Bug Day, but disabled · e0bb597d
      Tim Peters yazdı
      soon after because the gmail address it connects to started timing
      out on all the buildbot slaves.  Rewrote the test to produce a
      warning message (instead of failing) when the address times out.
      
      Also removed the special case for Windows -- this test started to
      work on Windows as soon as bug 1462352 was fixed.
      e0bb597d