Пример #1
0
def test_repr():
    r = (
        "JSON(encoding='utf-8', allow_nan=True, check_circular=True, ensure_ascii=True,\n"
        "     indent=None, separators=(',', ':'), skipkeys=False, sort_keys=True,\n"
        "     strict=True)"
    )
    check_repr(r)
    r = (
        "LegacyJSON(encoding='utf-8', allow_nan=True, check_circular=True,\n"
        "     ensure_ascii=True, indent=None, separators=(',', ':'), skipkeys=False,\n"
        "     sort_keys=True, strict=True)"
    )
    check_repr(r)
Пример #2
0
def test_repr():
    check_repr("Blosc(cname='zstd', clevel=3, shuffle=1)")
Пример #3
0
def test_repr():
    check_repr("MsgPack(encoding='utf-8')")
    check_repr("MsgPack(encoding='ascii')")
    check_repr("LegacyMsgPack(encoding='utf-8')")
    check_repr("LegacyMsgPack(encoding='ascii')")
Пример #4
0
def test_repr():
    check_repr("BZ2(level=3)")
Пример #5
0
def test_repr():
    check_repr("Zfp(mode='a',tol=0)")
    check_repr("Zfp(mode='p',prec=64)")
    check_repr("Zfp(mode='r',rate=0)")
Пример #6
0
def test_repr():
    check_repr("Delta(dtype='<i4', astype='<i2')")
Пример #7
0
def test_repr():
    check_repr("Quantize(digits=2, dtype='<f8', astype='<f2')")
Пример #8
0
def test_repr():
    check_repr("Pickle(protocol=-1)")
Пример #9
0
def test_repr():
    check_repr("Zlib(level=3)")
Пример #10
0
def test_repr():
    check_repr("MsgPack(raw=False, use_bin_type=True, use_single_float=False)")
    check_repr("MsgPack(raw=True, use_bin_type=False, use_single_float=True)")
    check_repr("LegacyMsgPack(encoding='utf-8')")
    check_repr("LegacyMsgPack(encoding='ascii')")
Пример #11
0
def test_repr():
    check_repr("PackBits()")
Пример #12
0
def test_repr():
    check_repr("MsgPack(raw=False, use_bin_type=True, use_single_float=False)")
    check_repr("MsgPack(raw=True, use_bin_type=False, use_single_float=True)")
Пример #13
0
def test_repr():
    check_repr("VLenArray(dtype='<i8')")
Пример #14
0
def test_repr():
    check_repr("ZFPY(mode=4, tolerance=0.001, rate=-1, precision=-1)")
Пример #15
0
def test_repr():
    check_repr("CRC32()")
    check_repr("Adler32()")
Пример #16
0
def test_repr():
    check_repr("GZip(level=3)")
Пример #17
0
def test_repr():
    check_repr("LZ4(acceleration=1)")
    check_repr("LZ4(acceleration=100)")
Пример #18
0
def test_repr():
    check_repr("Base64()")
Пример #19
0
def test_repr():
    check_repr("Zstd(level=3)")
Пример #20
0
def test_repr():
    check_repr("AsType(encode_dtype='<i4', decode_dtype='<i2')")
Пример #21
0
def test_repr():
    stmt = "FixedScaleOffset(scale=10, offset=100, dtype='<f8', astype='<i4')"
    check_repr(stmt)
Пример #22
0
def test_repr():
    check_repr('LZMA(format=1, check=0, preset=1, filters=None)')
Пример #23
0
def test_repr():
    check_repr("VLenBytes()")
Пример #24
0
def test_repr():
    check_repr("VLenUTF8()")