Skip to content

Commit ff12cb4

Browse files
committed
Use test framework assertion instead of plain assert.
Just like the other test cases. Remove unnecessary initialization of local variable.
1 parent 43e9377 commit ff12cb4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_sdo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,9 @@ def test_sdo_block_upload_retransmit(self):
471471
(RX, b'\xc9\x3b\x49\x00\x00\x00\x00\x00'),
472472
(TX, b'\xa1\x00\x00\x00\x00\x00\x00\x00'), # --> Transfer ends without issues
473473
]
474-
data = []
475474
with self.network[2].sdo[0x1008].open('r', block_transfer=True) as fp:
476475
data = fp.read()
477-
assert data == 39 * "the crazy fox jumps over the lazy dog\n"
476+
self.assertEqual(data, 39 * 'the crazy fox jumps over the lazy dog\n')
478477

479478
def test_writable_file(self):
480479
self.data = [

0 commit comments

Comments
 (0)