Skip to content

Commit 1912c84

Browse files
committed
Revert "Add a test for the escape keys"
This reverts commit a1802d6. It's not a useful test because it doesn't actually cause the key press in the OS, of course!
1 parent a1802d6 commit 1912c84

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_keys.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def test_character_bindings():
2828
counter = 0
2929

3030
class BindApp(App):
31-
BINDINGS = [(".,~,space,escape", "increment", "foo")]
31+
BINDINGS = [(".,~,space", "increment", "foo")]
3232

3333
def action_increment(self) -> None:
3434
nonlocal counter
@@ -45,12 +45,9 @@ def action_increment(self) -> None:
4545
await pilot.press(" ")
4646
await pilot.pause()
4747
assert counter == 3
48-
await pilot.press("escape") # https://github.com/Textualize/textual/issues/4038
49-
await pilot.pause()
50-
assert counter == 4
5148
await pilot.press("x")
5249
await pilot.pause()
53-
assert counter == 4
50+
assert counter == 3
5451

5552

5653
def test_get_key_display():

0 commit comments

Comments
 (0)