Skip to content

Commit 5a43be0

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

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
@@ -2413,17 +2413,7 @@ async def test_tab_complete_warning(self, ip):
24132413

24142414
code = "import pandas as pd; idx = pd.Index([1, 2])"
24152415
await ip.run_code(code)
2416-
2417-
# GH 31324 newer jedi version raises Deprecation warning
2418-
import jedi
2419-
2420-
if jedi.__version__ < "0.16.0":
2421-
warning = tm.assert_produces_warning(None)
2422-
else:
2423-
warning = tm.assert_produces_warning(
2424-
DeprecationWarning, check_stacklevel=False
2425-
)
2426-
with warning:
2416+
with tm.assert_produces_warning(None):
24272417
with provisionalcompleter("ignore"):
24282418
list(ip.Completer.completions("idx.", 4))
24292419

0 commit comments

Comments
 (0)