aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_snekbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_snekbox.py')
-rw-r--r--tests/test_snekbox.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_snekbox.py b/tests/test_snekbox.py
index a9d99a1..c95cf75 100644
--- a/tests/test_snekbox.py
+++ b/tests/test_snekbox.py
@@ -16,12 +16,13 @@ class SnekTests(unittest.TestCase):
result = snek.python3('print("test")')
self.assertEquals(result.strip(), 'test')
- # def test_memory_error(self):
- # code = ('x = "*"\n'
- # 'while True:\n'
- # ' x = x * 99\n')
- # result = snek.python3(code)
- # self.assertEquals(result.strip(), 'timed out or memory limit exceeded')
+ def test_memory_error(self):
+ code = ('x = "*"\n'
+ 'while True:\n'
+ ' x = x * 99\n')
+ result = snek.python3(code)
+
+ self.assertEquals(result.strip(), 'timed out or memory limit exceeded')
def test_timeout(self):
code = ('x = "*"\n'