| 1 | diff -upr intervals-0.8.1.orig/tests/interval/test_initialization.py intervals-0.8.1/tests/interval/test_initialization.py
|
| 2 | |
| 3 | |
| 4 | @@ -23,7 +23,7 @@ class TestIntervalInit(object):
|
| 5 | 'First argument should be a list or tuple. If you wish to '
|
| 6 | 'initialize an interval from string, use from_string factory '
|
| 7 | 'method.'
|
| 8 | - ) in str(e)
|
| 9 | + ) in str(e.value)
|
| 10 |
|
| 11 | def test_invalid_argument(self):
|
| 12 | with raises(IllegalArgument) as e:
|
| 13 | @@ -31,7 +31,7 @@ class TestIntervalInit(object):
|
| 14 | assert (
|
| 15 | 'The bounds may be equal only if at least one of the bounds is '
|
| 16 | 'closed.'
|
| 17 | - ) in str(e)
|
| 18 | + ) in str(e.value)
|
| 19 |
|
| 20 | def test_floats(self):
|
| 21 | interval = FloatInterval((0.2, 0.5))
|