[Checkins] [zopefoundation/ZODB] a86575: Fix blob_layout.txt failures on Python 2.7

GitHub noreply at github.com
Wed Feb 20 07:33:30 UTC 2013


  Branch: refs/heads/py3
  Home:   https://github.com/zopefoundation/ZODB
  Commit: a86575783f30fee79c47c16c317efe9c26254590
      https://github.com/zopefoundation/ZODB/commit/a86575783f30fee79c47c16c317efe9c26254590
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testblob.py

  Log Message:
  -----------
  Fix blob_layout.txt failures on Python 2.7


  Commit: 338536e8c03ec024ed9e9d9faf5870c566545155
      https://github.com/zopefoundation/ZODB/commit/338536e8c03ec024ed9e9d9faf5870c566545155
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testConnection.py

  Log Message:
  -----------
  Unify doctest indentation


  Commit: 6cd069dc926776fa8145ca09493f108c76499b4e
      https://github.com/zopefoundation/ZODB/commit/6cd069dc926776fa8145ca09493f108c76499b4e
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testConnection.py

  Log Message:
  -----------
  Use the testXXX convention for test names


  Commit: 7f626297a31eaf831aecb5c477ea2b3684991af5
      https://github.com/zopefoundation/ZODB/commit/7f626297a31eaf831aecb5c477ea2b3684991af5
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testConnection.py

  Log Message:
  -----------
  Consistently name doctest holder functions

(To distinguish them from real functions that actually do something when
called.)


  Commit: b41613fe2486fef44e5ebe91a77ca33c225dbe02
      https://github.com/zopefoundation/ZODB/commit/b41613fe2486fef44e5ebe91a77ca33c225dbe02
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testConnection.py

  Log Message:
  -----------
  Typo fixes


  Commit: 8788cb71217395eb50482b8bc2080cbf6aaa5d25
      https://github.com/zopefoundation/ZODB/commit/8788cb71217395eb50482b8bc2080cbf6aaa5d25
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/testConnection.py

  Log Message:
  -----------
  Fix doctest_readCurrent

It seems that OIDs are assigned in random order (dictionary iteration
order perhaps), and the test made assumptions.  Add an extra
transaction.commit() between object addition to fix OID assignment
order.


  Commit: 631bf4ed48c0f52cab483514641c8cd42feb16b2
      https://github.com/zopefoundation/ZODB/commit/631bf4ed48c0f52cab483514641c8cd42feb16b2
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/tests/MinPO.py

  Log Message:
  -----------
  Fix test_weakrefs_functional

In Python 3 object.__hash__ raises TypeError, so we need an explicit
override if we want hashability.


  Commit: c834a2918b3d4e908e290632bd974966067c1b26
      https://github.com/zopefoundation/ZODB/commit/c834a2918b3d4e908e290632bd974966067c1b26
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/ConflictResolution.py
    M src/ZODB/ConflictResolution.txt

  Log Message:
  -----------
  Fix ConflictResolution tests

Python 3 really wants rich comparison operators


  Commit: b9e24eb7e7f75e3bb76f05f43f5729718d23435e
      https://github.com/zopefoundation/ZODB/commit/b9e24eb7e7f75e3bb76f05f43f5729718d23435e
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/FileStorage/fsoids.py
    M src/ZODB/scripts/fsoids.py
    M src/ZODB/serialize.py

  Log Message:
  -----------
  Refactoring, typo fixes


  Commit: cb8fe1195de3fd8f0bad03d796aae76156f359d9
      https://github.com/zopefoundation/ZODB/commit/cb8fe1195de3fd8f0bad03d796aae76156f359d9
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/FileStorage/fsoids.py

  Log Message:
  -----------
  Fix half of testfsoids

In Python 2 str(SomeClass) returns "modulename.ClassName".

In Python 3 str(SomeClass) returns "<class 'modulename.ClassName'>".

We want the former.


  Commit: 9f93b7f508f3ab0006c7c0893cdd84731f30ba65
      https://github.com/zopefoundation/ZODB/commit/9f93b7f508f3ab0006c7c0893cdd84731f30ba65
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-02-19 (Tue, 19 Feb 2013)

  Changed paths:
    M src/ZODB/persistentclass.py
    M src/ZODB/persistentclass.txt

  Log Message:
  -----------
  Typo fixes


Compare: https://github.com/zopefoundation/ZODB/compare/57e8924459ec...9f93b7f508f3


More information about the checkins mailing list