From cff2e6efcf2fb2eb769d88ac60a32f96bd1059a1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 May 2026 12:49:50 +0530 Subject: [PATCH] ... --- kitty_tests/dnd.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/kitty_tests/dnd.py b/kitty_tests/dnd.py index d53b1ab12..35dca5de3 100644 --- a/kitty_tests/dnd.py +++ b/kitty_tests/dnd.py @@ -1607,19 +1607,6 @@ def test_drag_add_too_many_images_returns_error(self) -> None: self.assertEqual(len(events), 1, events) self.ae(events[0]['type'], 'E') - def test_drag_start_no_real_window_returns_einval_or_eperm(self) -> None: - """Starting a drag with a fake window (no GLFW handle) returns EINVAL or EPERM.""" - with dnd_test_window() as (screen, cap): - self._setup_drag_offer(screen, cap, 'text/plain') - # Try to start the drag – the fake window has no osw->handle, so - # start_window_drag returns EINVAL. - parse_bytes(screen, client_drag_start()) - events = self._get_events(cap) - self.assertEqual(len(events), 1, events) - self.ae(events[0]['type'], 'E') - # Error is EINVAL because osw->handle is NULL - self.assertIn(events[0]['payload'].strip(), [b'EINVAL', b'EPERM']) - def test_drag_start_without_offer_returns_einval(self) -> None: """Starting a drag without a prior offer returns EINVAL.""" with dnd_test_window() as (screen, cap):