Skip to content

Commit 5679955

Browse files
committed
Remove test for non-backported feature
1 parent 09f6fb1 commit 5679955

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
@@ -1815,17 +1815,6 @@ def test_showrefcount(self):
18151815
matches = re.findall(r'\[-?\d+ refs, \d+ blocks\]', output)
18161816
self.assertEqual(len(matches), 3)
18171817

1818-
def test_detect_pip_usage_in_repl(self):
1819-
for pip_cmd in ("pip", "pip3", "python -m pip", "python3 -m pip"):
1820-
with self.subTest(pip_cmd=pip_cmd):
1821-
output, exit_code = self.run_repl([f"{pip_cmd} install sampleproject", "exit"])
1822-
self.assertIn("SyntaxError", output)
1823-
hint = (
1824-
"The Python package manager (pip) can only be used"
1825-
" outside of the Python REPL"
1826-
)
1827-
self.assertIn(hint, output)
1828-
18291818

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

0 commit comments

Comments
 (0)