test/pyxtest: fix ruff I001/UP035 import ordering

Organize import blocks and import Iterator from collections.abc.

Assisted-by: AI
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2265>
This commit is contained in:
Olivier Fourdan 2026-07-29 10:06:41 +02:00 • committed by Enrico Weigelt
commit c310ccc3e0
19 changed files with 7 additions and 23 deletions

View file

@ -9,8 +9,9 @@ import warnings
import pytest
from pathlib import Path
from xserver import ExternalXServer, XServerProcess
import pytest
from xclient import RawX11Connection, X11ConnectionError, XlibConnection
from xserver import ExternalXServer, XServerProcess
def pytest_addoption(parser):

View file

@ -7,7 +7,6 @@ import tempfile
import time
import pytest
from proto import pcf, x11
from xclient import X11Error

View file

@ -6,7 +6,6 @@ import os
import time
import pytest
from proto import x11
from xclient import X11Reply

View file

@ -7,7 +7,6 @@ import tempfile
import time
import pytest
from proto import pcf, x11
from xclient import X11Error

View file

@ -6,7 +6,6 @@ import struct
import time
import pytest
from proto import glx
from xclient import Extension, X11Error, X11Reply

View file

@ -3,7 +3,6 @@
# Tests for Present extension.
import pytest
from proto import present
from xclient import BadWindow, Extension, X11Error

View file

@ -5,7 +5,6 @@
import struct
import pytest
from proto import randr
from xclient import BadIDChoice, BadLength, Extension, X11Error, X11Reply

View file

@ -5,7 +5,6 @@
import time
import pytest
from proto import record
from xclient import Extension

View file

@ -5,7 +5,6 @@
import struct
import pytest
from proto import render
from xclient import Extension, X11Error, X11Reply

View file

@ -5,7 +5,6 @@
import time
import pytest
from proto import screensaver, x11
from xclient import Extension

View file

@ -5,7 +5,6 @@
import struct
import pytest
from proto import shm
from xclient import Extension, X11Reply

View file

@ -6,9 +6,8 @@ import struct
import time
import pytest
from proto import sync
from xclient import Extension, X11Error, X11Reply, RawX11Connection
from xclient import Extension, RawX11Connection, X11Error, X11Reply
@pytest.fixture

View file

@ -5,7 +5,6 @@
import struct
import pytest
from proto import vidmode
from xclient import Extension, X11Error, X11Reply

View file

@ -5,9 +5,8 @@
import struct
import pytest
from proto import xi
from xclient import BadLength, BadWindow, BadValue, Extension, X11Error, X11Reply
from xclient import BadLength, BadValue, BadWindow, Extension, X11Error, X11Reply
@pytest.fixture

View file

@ -3,7 +3,6 @@
# Tests for XINERAMA (PanoramiX / pseudoramiX) extension.
import pytest
from proto import xinerama
from xclient import Extension, X11Reply

View file

@ -7,7 +7,6 @@ import struct
import time
import pytest
from proto import xkb
from xclient import BadLength, BadMatch, BadValue, X11Error, X11Reply

View file

@ -5,7 +5,6 @@
import struct
import pytest
from proto import xres
from xclient import Extension, X11Reply

View file

@ -10,6 +10,7 @@ from dataclasses import dataclass
from enum import StrEnum
from typing import Protocol, runtime_checkable
from proto import xkb
from proto.bigrequests import BigRequestsEnableRequest
from proto.x11 import (
ChangeKeyboardMappingRequest,
@ -18,7 +19,6 @@ from proto.x11 import (
InternAtomRequest,
QueryExtensionRequest,
)
from proto import xkb
class X11ConnectionError(Exception):

View file

@ -6,16 +6,15 @@
# optionally under valgrind or with AddressSanitizer (ASAN) support,
# with automatic display number allocation via the -displayfd mechanism.
from typing import Iterator
import os
import select
import shutil
import sys
import subprocess
import sys
import tempfile
import time
import warnings
from collections.abc import Iterator
from pathlib import Path
from asan import AsanError