...
This commit is contained in:
parent
1036132838
commit
b5c086aedb
@ -127,7 +127,7 @@ begin_load_signature(PyObject *self UNUSED, PyObject *args UNUSED) {
|
|||||||
static PyObject*
|
static PyObject*
|
||||||
build_hash_table(PyObject *self UNUSED, PyObject *args) {
|
build_hash_table(PyObject *self UNUSED, PyObject *args) {
|
||||||
PyObject *sig_capsule;
|
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;
|
GET_SIG_FROM_CAPSULE;
|
||||||
rs_result res = rs_build_hash_table(sig);
|
rs_result res = rs_build_hash_table(sig);
|
||||||
if (res != RS_DONE) {
|
if (res != RS_DONE) {
|
||||||
|
|||||||
@ -88,7 +88,7 @@ class TransmissionError(Exception):
|
|||||||
name: str = '',
|
name: str = '',
|
||||||
size: int = -1
|
size: int = -1
|
||||||
) -> None:
|
) -> None:
|
||||||
Exception.__init__(self, msg)
|
super().__init__(msg)
|
||||||
self.transmit = transmit
|
self.transmit = transmit
|
||||||
self.file_id = file_id
|
self.file_id = file_id
|
||||||
self.human_msg = msg
|
self.human_msg = msg
|
||||||
|
|||||||
@ -108,7 +108,7 @@ def filled_history_buf(ynum=5, xnum=5, cursor=Cursor()):
|
|||||||
class BaseTest(TestCase):
|
class BaseTest(TestCase):
|
||||||
|
|
||||||
ae = TestCase.assertEqual
|
ae = TestCase.assertEqual
|
||||||
maxDiff = 2000
|
maxDiff = 2048
|
||||||
is_ci = os.environ.get('CI') == 'true'
|
is_ci = os.environ.get('CI') == 'true'
|
||||||
|
|
||||||
def set_options(self, options=None):
|
def set_options(self, options=None):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user