Skip to content

Commit f4d8d35

Browse files
author
victor
committed
Added null context manager for parametrizing tests on exception raising.
1 parent 4e99eb7 commit f4d8d35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/util/testing.py

+8
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
from pandas._libs import testing as _testing
4949
from pandas.io.common import urlopen
5050

51+
if sys.version_info >= (3, 3):
52+
from contextlib import ExitStack as nullcontext
53+
else:
54+
from contextlib2 import ExitStack as nullcontext
55+
56+
57+
do_not_raise = nullcontext()
58+
5159

5260
N = 30
5361
K = 4

0 commit comments

Comments
 (0)