Skip to content

Commit 1a0c4c7

Browse files
author
MomIsBestFriend
committed
CI: Reverted changes related to 'jedi' warnings
REF: pandas-dev#31323 pandas-dev#31407
1 parent 80d37ad commit 1a0c4c7

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

pandas/tests/arrays/categorical/test_warnings.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ async def test_tab_complete_warning(self, ip):
1414

1515
code = "import pandas as pd; c = Categorical([])"
1616
await ip.run_code(code)
17-
18-
# GH 31324 newer jedi version raises Deprecation warning
19-
import jedi
20-
21-
if jedi.__version__ < "0.16.0":
22-
warning = tm.assert_produces_warning(None)
23-
else:
24-
warning = tm.assert_produces_warning(
25-
DeprecationWarning, check_stacklevel=False
26-
)
27-
with warning:
17+
with tm.assert_produces_warning(None):
2818
with provisionalcompleter("ignore"):
2919
list(ip.Completer.completions("c.", 1))

pandas/tests/indexes/test_base.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,17 +2417,7 @@ async def test_tab_complete_warning(self, ip):
24172417

24182418
code = "import pandas as pd; idx = pd.Index([1, 2])"
24192419
await ip.run_code(code)
2420-
2421-
# GH 31324 newer jedi version raises Deprecation warning
2422-
import jedi
2423-
2424-
if jedi.__version__ < "0.16.0":
2425-
warning = tm.assert_produces_warning(None)
2426-
else:
2427-
warning = tm.assert_produces_warning(
2428-
DeprecationWarning, check_stacklevel=False
2429-
)
2430-
with warning:
2420+
with tm.assert_produces_warning(None):
24312421
with provisionalcompleter("ignore"):
24322422
list(ip.Completer.completions("idx.", 4))
24332423

0 commit comments

Comments
 (0)