Fixing remaining flake8 lint warnings
This commit is contained in:
@@ -31,6 +31,7 @@ def test_large_read(test_capnp):
|
||||
del f
|
||||
assert array.rows[0].values[9000] == 9000
|
||||
|
||||
|
||||
def test_large_read_multiple(test_capnp):
|
||||
f = tempfile.TemporaryFile()
|
||||
msg1 = test_capnp.Msg.new_message()
|
||||
@@ -43,6 +44,7 @@ def test_large_read_multiple(test_capnp):
|
||||
for m in test_capnp.Msg.read_multiple(f):
|
||||
pass
|
||||
|
||||
|
||||
def get_two_adjacent_messages(test_capnp):
|
||||
msg1 = test_capnp.Msg.new_message()
|
||||
msg1.data = [0x41] * 8192
|
||||
@@ -52,6 +54,7 @@ def get_two_adjacent_messages(test_capnp):
|
||||
|
||||
return m1 + m2
|
||||
|
||||
|
||||
def test_large_read_multiple_bytes(test_capnp):
|
||||
data = get_two_adjacent_messages(test_capnp)
|
||||
for m in test_capnp.Msg.read_multiple_bytes(data):
|
||||
@@ -67,6 +70,7 @@ def test_large_read_multiple_bytes(test_capnp):
|
||||
for m in test_capnp.Msg.read_multiple_bytes(data):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.skipif(platform.python_implementation() == 'PyPy', reason="PyPy memoryview support is limited")
|
||||
def test_large_read_mutltiple_bytes_memoryview(test_capnp):
|
||||
data = get_two_adjacent_messages(test_capnp)
|
||||
|
||||
Reference in New Issue
Block a user