We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0e6a1d + fd0c3f5 commit 18227f2Copy full SHA for 18227f2
tests/test_utility.py
@@ -1,4 +1,7 @@
1
-from contextlib import nullcontext
+from contextlib import (
2
+ AbstractContextManager,
3
+ nullcontext,
4
+)
5
import platform
6
7
import pandas as pd
@@ -15,11 +18,10 @@
15
18
16
19
def test_show_version():
17
20
"""Test show_versions method types with split case for pandas and python versions."""
- # https://github.com/PyTables/PyTables/issues/1172
- context = nullcontext()
21
+ context: AbstractContextManager = nullcontext()
22
if PD_LTE_22:
23
# distutils warning is only raised with pandas<3.0.0
- if NUMPY20:
24
+ if NUMPY20: # https://github.com/PyTables/PyTables/issues/1172
25
context = pytest.raises(ValueError)
26
with (
27
pytest_warns_bounded(
0 commit comments