- 16 Jul, 2019 14 commits
-
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
- 15 Jul, 2019 14 commits
-
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
* master: bigfile/py: It is ok to have .fileh_open() as BigFile method
-
Kirill Smelkov authored
-
Kirill Smelkov authored
There was an XXX of whether fileh_open should be a BigFile method or global function. However if it would be a global function it will need to anyway accept file parameter to indicate which file is opened, and that in turn suggests that it should be a file method. Remove XXX.
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
On can just use GOFLAGS env var that is taken by go command itself into account.
-
- 12 Jul, 2019 12 commits
-
-
Kirill Smelkov authored
-
Kirill Smelkov authored
See 69c94fbc and 48eb692f for description of the problem.
-
Kirill Smelkov authored
* master: */tests: Use defer instead of finally *: Use defer for dbclose & friends
-
Kirill Smelkov authored
-
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.
-
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.
-
Kirill Smelkov authored
-
Kirill Smelkov authored
* master: */tests: Use pytest.raises in modern way
-
Kirill Smelkov authored
-
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
-
Kirill Smelkov authored
Else after first failing tests all furhter test can't start because trying to stat testmntpt/.wcfs gives ENOTCONN.
-
Kirill Smelkov authored
-