Skip to content

Commit

Permalink
pythongh-107450: Fix testMemoryErrorBigSource using the bigmemtest de…
Browse files Browse the repository at this point in the history
…corator
  • Loading branch information
lysnikolaou committed Oct 13, 2023
1 parent 05439d3 commit 643a3ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Python test set -- part 5, built-in exceptions

import copy
import ctypes
import os
import sys
import unittest
Expand Down Expand Up @@ -320,7 +321,7 @@ def baz():

@support.requires_resource('cpu')
@support.bigmemtest(support._2G, memuse=1.5)
def testMemoryErrorBigSource(self):
def testMemoryErrorBigSource(self, _size):
with self.assertRaises(OverflowError):
exec(f"if True:\n {' ' * 2**31}print('hello world')")

Expand Down

0 comments on commit 643a3ff

Please sign in to comment.