diff options
| author | Chris McDonough <chrism@plope.com> | 2011-11-08 17:02:27 -0800 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-11-08 17:02:27 -0800 |
| commit | dfbbe87219e848ea6f02a94926140d918beb088d (patch) | |
| tree | f9381870d261fa41732f549bed534231cad4013c | |
| parent | d55ba532da4eb5a8c5d48f94397dcdd85ea785ea (diff) | |
| download | pyramid-dfbbe87219e848ea6f02a94926140d918beb088d.tar.gz pyramid-dfbbe87219e848ea6f02a94926140d918beb088d.tar.bz2 pyramid-dfbbe87219e848ea6f02a94926140d918beb088d.zip | |
the with statement doesnt work under py26; unit tests shouldnt show comments
| -rw-r--r-- | pyramid/tests/test_httpexceptions.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pyramid/tests/test_httpexceptions.py b/pyramid/tests/test_httpexceptions.py index 2cbe208cd..84485fadc 100644 --- a/pyramid/tests/test_httpexceptions.py +++ b/pyramid/tests/test_httpexceptions.py @@ -295,11 +295,10 @@ class Test_HTTPMove(unittest.TestCase): return _HTTPMove(*arg, **kw) def test_it_location_none_valueerrors(self): - """ Constructing a HTTPMove instance with location=None should - throw a ValueError from __init__ so that a more-confusing - exception won't be thrown later from .prepare(environ) """ - with self.assertRaises(ValueError): - exc = self._makeOne(location=None) + # Constructing a HTTPMove instance with location=None should + # throw a ValueError from __init__ so that a more-confusing + # exception won't be thrown later from .prepare(environ) + self.assertRaises(ValueError, self._makeOne, location=None) def test_it_location_not_passed(self): exc = self._makeOne() |
