Skip to content

Commit 43523bd

Browse files
author
MomIsBestFriend
committed
Revert "CI: Fix jedi upgrades causes deprecation warning (pandas-dev#31323)"
This reverts commit e61f47a.
1 parent b6cb1a4 commit 43523bd

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

pandas/tests/arrays/categorical/test_warnings.py

+1-11
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

+1-11
Original file line numberDiff line numberDiff line change
@@ -2244,17 +2244,7 @@ async def test_tab_complete_warning(self, ip):
22442244

22452245
code = "import pandas as pd; idx = pd.Index([1, 2])"
22462246
await ip.run_code(code)
2247-
2248-
# GH 31324 newer jedi version raises Deprecation warning
2249-
import jedi
2250-
2251-
if jedi.__version__ < "0.16.0":
2252-
warning = tm.assert_produces_warning(None)
2253-
else:
2254-
warning = tm.assert_produces_warning(
2255-
DeprecationWarning, check_stacklevel=False
2256-
)
2257-
with warning:
2247+
with tm.assert_produces_warning(None):
22582248
with provisionalcompleter("ignore"):
22592249
list(ip.Completer.completions("idx.", 4))
22602250

0 commit comments

Comments
 (0)