Skip to content

Commit a38d6a4

Browse files
committed
Remove test for non-backported feature
1 parent b2b8438 commit a38d6a4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,17 +1405,6 @@ def test_showrefcount(self):
14051405
matches = re.findall(r'\[-?\d+ refs, \d+ blocks\]', output)
14061406
self.assertEqual(len(matches), 3)
14071407

1408-
def test_detect_pip_usage_in_repl(self):
1409-
for pip_cmd in ("pip", "pip3", "python -m pip", "python3 -m pip"):
1410-
with self.subTest(pip_cmd=pip_cmd):
1411-
output, exit_code = self.run_repl([f"{pip_cmd} install sampleproject", "exit"])
1412-
self.assertIn("SyntaxError", output)
1413-
hint = (
1414-
"The Python package manager (pip) can only be used"
1415-
" outside of the Python REPL"
1416-
)
1417-
self.assertIn(hint, output)
1418-
14191408

14201409
class TestPyReplCtrlD(TestCase):
14211410
"""Test Ctrl+D behavior in _pyrepl to match old pre-3.13 REPL behavior.

0 commit comments

Comments
 (0)