Skip to content

Commit acdbb1a

Browse files
committed
Make test work under Python 2.6.
1 parent 05a2d40 commit acdbb1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_autocomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def skip(f):
1414

1515
class TestSafeEval(unittest.TestCase):
1616
def test_catches_syntax_error(self):
17-
with self.assertRaises(autocomplete.EvaluationError):
18-
autocomplete.safe_eval('1re',{})
17+
self.assertRaises(autocomplete.EvaluationError,
18+
autocomplete.safe_eval, '1re', {})
1919

2020

2121
class TestFormatters(unittest.TestCase):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy