Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Unified Diff: Lib/test/test_exceptions.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_email/test_utils.py ('k') | Lib/test/test_extcall.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_exceptions.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_exceptions.py Mon Jul 25 09:47:18 2011 -0400
@@ -567,33 +567,6 @@
del g
self.assertEqual(sys.exc_info()[0], TypeError)
- def test_generator_leaking2(self):
- # See issue 12475.
- def g():
- yield
- try:
- raise RuntimeError
- except RuntimeError:
- it = g()
- next(it)
- try:
- next(it)
- except StopIteration:
- pass
- self.assertEqual(sys.exc_info(), (None, None, None))
-
- def test_generator_doesnt_retain_old_exc(self):
- def g():
- self.assertIsInstance(sys.exc_info()[1], RuntimeError)
- yield
- self.assertEqual(sys.exc_info(), (None, None, None))
- it = g()
- try:
- raise RuntimeError
- except RuntimeError:
- next(it)
- self.assertRaises(StopIteration, next, it)
-
def test_generator_finalizing_and_exc_info(self):
# See #7173
def simple_gen():
« no previous file with comments | « Lib/test/test_email/test_utils.py ('k') | Lib/test/test_extcall.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+