Skip to content

Commit

Permalink
Update Lib/test/test_pyrepl/test_pyrepl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou authored and pablogsal committed Jun 11, 2024
1 parent c95c035 commit 688129b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import importlib
import io
import itertools
import os
Expand Down Expand Up @@ -848,6 +847,8 @@ def test_exposed_globals_in_repl(self):
"\'__name__\', \'__package__\', \'__spec__\']"
)
output, exit_code = self.run_repl(["sorted(dir())", "exit"])
if "can\'t use pyrepl" in output:
self.skipTest("pyrepl not available")
self.assertEqual(exit_code, 0)
self.assertIn(expected_output, output)

Expand Down

0 comments on commit 688129b

Please sign in to comment.