##// END OF EJS Templates
add test
yangyang -
Show More
@@ -276,6 +276,10 b' class AsyncTest(TestCase):'
276 276 """
277 277 )
278 278
279 def test_memory_error(self):
280 with self.assertRaises(MemoryError):
281 iprc("(" * 200 + ")" * 200)
282
279 283 @skip_without('curio')
280 284 def test_autoawait_curio(self):
281 285 iprc("%autoawait curio")
@@ -253,6 +253,13 b' bar()'
253 253 ip.showsyntaxerror()
254 254
255 255
256 class MemoryErrorTest(unittest.TestCase):
257 def test_memoryerror(self):
258 memoryerror_code = "(" * 200 + ")" * 200
259 with tt.AssertPrints("MemoryError"):
260 ip.run_cell(memoryerror_code)
261
262
256 263 class Python3ChainedExceptionsTest(unittest.TestCase):
257 264 DIRECT_CAUSE_ERROR_CODE = """
258 265 try:
General Comments 0
You need to be logged in to leave comments. Login now