1. 15 Jul, 2019 4 commits
  2. 12 Jul, 2019 14 commits
    • Kirill Smelkov's avatar
      . · 4eb924e4
      Kirill Smelkov authored
      4eb924e4
    • Kirill Smelkov's avatar
      X wc1: Split out demo for failing cache invalidation into xfail'ing test · 197c35ea
      Kirill Smelkov authored
      See 69c94fbc and 48eb692f for description of the problem.
      197c35ea
    • Kirill Smelkov's avatar
      Merge branch 'master' into t · 10ca939f
      Kirill Smelkov authored
      * master:
        */tests: Use defer instead of finally
        *: Use defer for dbclose & friends
      10ca939f
    • Kirill Smelkov's avatar
      . · ec3ae866
      Kirill Smelkov authored
      ec3ae866
    • Kirill Smelkov's avatar
      */tests: Use defer instead of finally · 2b457640
      Kirill Smelkov authored
      try/finally was used in a couple of places to save/restore default ZBlk
      format setting. Move the restore part close to save with the help of
      defer.
      2b457640
    • Kirill Smelkov's avatar
      *: Use defer for dbclose & friends · 5c8340d2
      Kirill Smelkov authored
      For tests this makes sure that if one test fails, it won't make following
      tests fail just because the next test will fail trying to lock test database.
      
      For regular code (demo_zbigarray.py) this is also a good thing to do -
      to always close the database irregardless of whether an exception was
      raised before program reached end of main.
      
      Pygolang becomes regular - not test only - dependency. Being regular
      dependency is currently required only by demo_zbigarray.py, but it will
      be also used in upcoming wcfs, so adding pygolang into wendelin.core
      dependencies aligns with the plan.
      
      dbclose now uses defer almost everywhere - there are still few places in
      tests, where one test function is opening/closing test database multiple
      times - those were not (yet ?) converted.
      5c8340d2
    • Kirill Smelkov's avatar
      . · 00ab5fb4
      Kirill Smelkov authored
      00ab5fb4
    • Kirill Smelkov's avatar
      Merge branch 'master' into t · 0b0d80dd
      Kirill Smelkov authored
      * master:
        */tests: Use pytest.raises in modern way
      0b0d80dd
    • Kirill Smelkov's avatar
      . · 3d7fb6dd
      Kirill Smelkov authored
      3d7fb6dd
    • Kirill Smelkov's avatar
      */tests: Use pytest.raises in modern way · b12e319e
      Kirill Smelkov authored
      Instead of
      
      	raises(Exception, 'code')
      
      do
      
      	with raises(Exception):
      		code
      
      This removes lots of warnings, similar to below example:
      
      	bigfile/tests/test_basic.py::test_basic
      	  /home/kirr/src/wendelin/wendelin.core/bigfile/tests/test_basic.py:79: PytestDeprecationWarning: raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly
      
      	  See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec
      	    raises(ROAttributeError, "f.blksize = 1") # RO attribute
      b12e319e
    • Kirill Smelkov's avatar
      X More effort to unmount failed wcfs.go · 2c043d29
      Kirill Smelkov authored
      Else after first failing tests all furhter test can't start because
      trying to stat testmntpt/.wcfs gives ENOTCONN.
      2c043d29
    • Kirill Smelkov's avatar
      . · ab962714
      Kirill Smelkov authored
      ab962714
    • Kirill Smelkov's avatar
      . · e7b77669
      Kirill Smelkov authored
      e7b77669
    • Kirill Smelkov's avatar
      . · 9836eede
      Kirill Smelkov authored
      9836eede
  3. 11 Jul, 2019 22 commits