1. 05 Jul, 2021 1 commit
    • Kirill Smelkov's avatar
      Fix tests with ZODB 5.6 · 7c0dd909
      Kirill Smelkov authored
      By definition IStorage level methods need to be passed in storage-level
      IStorageTransactionMetaData, not regular transaction.Transaction
      objects:
      
      https://github.com/zopefoundation/ZODB/blob/5.6.0-35-g1fb097b41/src/ZODB/interfaces.py#L827-L830
      
      Passing in there regular transaction.Transaction used to work
      historically, but after https://github.com/zopefoundation/ZODB/commit/2f8cc67a
      it started to fail as:
      
          Error in test test_conflict_cache_clears_over_time (tempstorage.tests.testTemporaryStorage.TemporaryStorageTests)
          Traceback (most recent call last):
            File "/usr/lib/python2.7/unittest/case.py", line 329, in run
              testMethod()
            File "/home/kirr/src/wendelin/z/tempstorage/src/tempstorage/tests/testTemporaryStorage.py", line 195, in test_conflict_cache_clears_over_time
              self._dostore(storage, oid1, data=MinPO(5))
            File "/home/kirr/src/wendelin/z/tempstorage/src/tempstorage/tests/testTemporaryStorage.py", line 132, in _dostore
              storage.tpc_begin(t)
            File "/home/kirr/src/wendelin/z/ZODB/src/ZODB/BaseStorage.py", line 193, in tpc_begin
              ext = transaction.extension_bytes
          AttributeError: 'Transaction' object has no attribute 'extension_bytes'
      
      -> Fix it by using storage-level transactions in tests.
      7c0dd909
  2. 02 Jul, 2021 1 commit
  3. 13 May, 2020 1 commit
  4. 15 Aug, 2019 4 commits
  5. 14 Aug, 2019 1 commit
  6. 13 Aug, 2019 4 commits
  7. 12 Aug, 2019 1 commit
  8. 10 May, 2019 6 commits
  9. 06 May, 2019 1 commit
  10. 09 Apr, 2019 5 commits
  11. 27 Nov, 2017 4 commits
  12. 19 Sep, 2017 1 commit
  13. 08 Sep, 2017 1 commit
  14. 09 Mar, 2017 8 commits
  15. 24 Feb, 2017 1 commit