From 0460f97c422f4d4d7683b5c6894ab9b70badbb70 Mon Sep 17 00:00:00 2001 From: yanghua Date: Sat, 14 Sep 2024 20:32:15 +0800 Subject: [PATCH] Core: Check MPU threshold --- tosfs/tests/test_tosfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tosfs/tests/test_tosfs.py b/tosfs/tests/test_tosfs.py index a02acf4..75ce1a2 100644 --- a/tosfs/tests/test_tosfs.py +++ b/tosfs/tests/test_tosfs.py @@ -753,7 +753,7 @@ def test_file_write_mpu_threshold_check( file_name = random_str() content = "a" * 1 * 1024 block_size = 4 * 1024 - with pytest.raises(ValueError, match="Block size must be >= 4MB.") and tosfs.open( + with pytest.raises(ValueError, match="Block size must be >= 4MB."), tosfs.open( f"{bucket}/{temporary_workspace}/{file_name}", "w", block_size=block_size ) as f: f.write(content)