diff --git a/examples/storage/spiffsgen/example_test.py b/examples/storage/spiffsgen/example_test.py index 724fef9c8e..32b6cc7e92 100644 --- a/examples/storage/spiffsgen/example_test.py +++ b/examples/storage/spiffsgen/example_test.py @@ -15,7 +15,7 @@ def test_examples_spiffsgen(env, extra_data): # Expect hello.txt is read successfully with open(os.path.join(base_dir, 'hello.txt'), 'r') as hello_txt: - dut.expect('Read from hello.txt: ' + hello_txt.read()) + dut.expect('Read from hello.txt: ' + hello_txt.read().rstrip()) # Expect alice.txt MD5 hash is computed accurately with open(os.path.join(base_dir, 'sub', 'alice.txt'), 'rb') as alice_txt: