diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 21:05:39 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 21:05:39 +0000 |
commit | f0c2ca267fdbbb4d27999a9e5fd2e5460d61dcb7 (patch) | |
tree | 5af7cf8fa28e6d7305d247180136c7c41a814d88 | |
parent | 34d701fb63bbbed3cfe247a5bb565bb6705fd582 (diff) | |
download | cpython-git-f0c2ca267fdbbb4d27999a9e5fd2e5460d61dcb7.tar.gz |
Merged revisions 75417 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75417 | antoine.pitrou | 2009-10-14 21:47:13 +0300 (Wed, 14 Oct 2009) | 3 lines
Fix failures in test_profilehooks when run with -3
........
-rw-r--r-- | Lib/test/test_profilehooks.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/test_profilehooks.py b/Lib/test/test_profilehooks.py index 2eedfd92e9..3e02830ef6 100644 --- a/Lib/test/test_profilehooks.py +++ b/Lib/test/test_profilehooks.py @@ -110,7 +110,7 @@ class ProfileHookTestCase(TestCaseBase): def test_exception(self): def f(p): - 1/0 + 1./0 f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), (1, 'return', f_ident), @@ -118,7 +118,7 @@ class ProfileHookTestCase(TestCaseBase): def test_caught_exception(self): def f(p): - try: 1/0 + try: 1./0 except: pass f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), @@ -127,7 +127,7 @@ class ProfileHookTestCase(TestCaseBase): def test_caught_nested_exception(self): def f(p): - try: 1/0 + try: 1./0 except: pass f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), @@ -136,7 +136,7 @@ class ProfileHookTestCase(TestCaseBase): def test_nested_exception(self): def f(p): - 1/0 + 1./0 f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), # This isn't what I expected: @@ -147,7 +147,7 @@ class ProfileHookTestCase(TestCaseBase): def test_exception_in_except_clause(self): def f(p): - 1/0 + 1./0 def g(p): try: f(p) @@ -166,7 +166,7 @@ class ProfileHookTestCase(TestCaseBase): def test_exception_propogation(self): def f(p): - 1/0 + 1./0 def g(p): try: f(p) finally: p.add_event("falling through") @@ -181,8 +181,8 @@ class ProfileHookTestCase(TestCaseBase): def test_raise_twice(self): def f(p): - try: 1/0 - except: 1/0 + try: 1./0 + except: 1./0 f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), (1, 'return', f_ident), @@ -190,7 +190,7 @@ class ProfileHookTestCase(TestCaseBase): def test_raise_reraise(self): def f(p): - try: 1/0 + try: 1./0 except: raise f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), @@ -207,7 +207,7 @@ class ProfileHookTestCase(TestCaseBase): def test_distant_exception(self): def f(): - 1/0 + 1./0 def g(): f() def h(): @@ -292,7 +292,7 @@ class ProfileSimulatorTestCase(TestCaseBase): def test_basic_exception(self): def f(p): - 1/0 + 1./0 f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), (1, 'return', f_ident), @@ -300,7 +300,7 @@ class ProfileSimulatorTestCase(TestCaseBase): def test_caught_exception(self): def f(p): - try: 1/0 + try: 1./0 except: pass f_ident = ident(f) self.check_events(f, [(1, 'call', f_ident), @@ -309,7 +309,7 @@ class ProfileSimulatorTestCase(TestCaseBase): def test_distant_exception(self): def f(): - 1/0 + 1./0 def g(): f() def h(): |