You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building and testing gemmi v0.5.0 for Debian using system-provided pegtl (v2.8.3-3). I am getting the following test failure:
==================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________ TestBlock.test_file_not_found __________________________________________________________________________________________
self = <test_cif.TestBlock testMethod=test_file_not_found>
def test_file_not_found(self):
with self.assertRaises(IOError):
> cif.read('file-that-does-not-exist.cif')
E RuntimeError: pegtl: unable to open() file file-that-does-not-exist.cif for reading errno 2
tests/test_cif.py:244: RuntimeError
============================================================================================= short test summary info =============================================================================================
FAILED tests/test_cif.py::TestBlock::test_file_not_found - RuntimeError: pegtl: unable to open() file file-that-does-not-exist.cif for reading errno 2
==================================================================================== 1 failed, 135 passed, 10 skipped in 1.17s ====================================================================================
If I replace with self.assertRaises(IOError): with with self.assertRaises(RuntimeError):, the test passes. I am not sure, though, that this is not error masking.
This issue may as well be caused by using pegtl of other version than shipped with gemmi. If so, please ignore this report.
The text was updated successfully, but these errors were encountered:
This exception type was changed in response to #119.
It included a small change in PEGTL in 8e0a2cd
so I'm afraid that PEGTL in gemmi is now not fully compatible with the original PEGTL.
I see, thanks for the explanation. A comment in 8e0a2cd says that pegtl v3 has changed the way it issues errors, and the change to the shipped pegtl is its partial backport. It would be interesting to try building with the original pegtl v3 when it becomes available in Debian.
I am building and testing gemmi v0.5.0 for Debian using system-provided pegtl (v2.8.3-3). I am getting the following test failure:
If I replace
with self.assertRaises(IOError):
withwith self.assertRaises(RuntimeError):
, the test passes. I am not sure, though, that this is not error masking.This issue may as well be caused by using pegtl of other version than shipped with gemmi. If so, please ignore this report.
The text was updated successfully, but these errors were encountered: