This commit is contained in:
Kovid Goyal 2021-09-19 20:25:08 +05:30
parent 1036132838
commit b5c086aedb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ begin_load_signature(PyObject *self UNUSED, PyObject *args UNUSED) {
static PyObject*
build_hash_table(PyObject *self UNUSED, PyObject *args) {
PyObject *sig_capsule;
if (!PyArg_ParseTuple(args, "O!y#|p", &PyCapsule_Type, &sig_capsule)) return NULL;
if (!PyArg_ParseTuple(args, "O!", &PyCapsule_Type, &sig_capsule)) return NULL;
GET_SIG_FROM_CAPSULE;
rs_result res = rs_build_hash_table(sig);
if (res != RS_DONE) {

View File

@ -88,7 +88,7 @@ class TransmissionError(Exception):
name: str = '',
size: int = -1
) -> None:
Exception.__init__(self, msg)
super().__init__(msg)
self.transmit = transmit
self.file_id = file_id
self.human_msg = msg

View File

@ -108,7 +108,7 @@ def filled_history_buf(ynum=5, xnum=5, cursor=Cursor()):
class BaseTest(TestCase):
ae = TestCase.assertEqual
maxDiff = 2000
maxDiff = 2048
is_ci = os.environ.get('CI') == 'true'
def set_options(self, options=None):