Skip to content

Commit e0564b3

Browse files
committed
Mark test_instance_cause as failing only on Py3
1 parent 382d8a9 commit e0564b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

future/tests/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from future.utils import (old_div, istext, isbytes, native, PY2, PY3,
1010
native_str, raise_, as_native_str, ensure_new_type,
1111
bytes_to_native_str, raise_from)
12+
from future.tests.base import expectedFailurePY3
1213

1314
from numbers import Integral
1415
from future.tests.base import unittest, skip26
@@ -264,7 +265,7 @@ def test_class_cause(self):
264265
else:
265266
self.fail("No exception raised")
266267

267-
@unittest.expectedFailure
268+
@expectedFailurePY3
268269
def test_instance_cause(self):
269270
cause = KeyError('blah')
270271
try:

0 commit comments

Comments
 (0)