Skip to content

Commit 5f74af3

Browse files
committed
Use MemoryError instead of unittest fail
This test does not inherit from a unittest, so it does not have a fail method. This change makes the test raise a MemoryError with the existing failure message.
1 parent f16306f commit 5f74af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/customizations/s3/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ def assert_max_memory_used(self, process, max_mem_allowed, full_command):
15541554
peak_memory / 1024.0 / 1024.0,
15551555
)
15561556
)
1557-
self.fail(failure_message)
1557+
raise MemoryError(failure_message)
15581558

15591559
def test_transfer_single_large_file(self, files, shared_bucket):
15601560
# 40MB will force a multipart upload.

0 commit comments

Comments
 (0)