Merge pull request #7736 from hugovk/isort-tests

Sort imports in `Tests/`
This commit is contained in:
Andrew Murray 2024-01-21 14:30:42 +11:00 committed by GitHub
commit 1891b61f73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
175 changed files with 176 additions and 4 deletions

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import time import time
from PIL import PyAccess from PIL import PyAccess

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image
TEST_FILE = "Tests/images/fli_overflow.fli" TEST_FILE = "Tests/images/fli_overflow.fli"

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -14,7 +14,6 @@
# version. # version.
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image
repro = ("00r0_gray_l.jp2", "00r1_graya_la.jp2") repro = ("00r0_gray_l.jp2", "00r1_graya_la.jp2")

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import zlib import zlib
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
from pathlib import Path from pathlib import Path

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
from PIL import features from PIL import features

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations from __future__ import annotations
import base64 import base64
import os import os

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import subprocess import subprocess
import sys import sys

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import _binary from PIL import _binary

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, ImageFilter from PIL import Image, ImageFilter

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from array import array from array import array
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import _deprecate from PIL import _deprecate

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import re import re

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, ImageSequence, PngImagePlugin from PIL import Image, ImageSequence, PngImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import BufrStubImagePlugin, Image from PIL import BufrStubImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import ContainerIO, Image from PIL import ContainerIO, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import CurImagePlugin, Image from PIL import CurImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
import pytest import pytest

View File

@ -1,5 +1,6 @@
"""Test DdsImagePlugin""" """Test DdsImagePlugin"""
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import FtexImagePlugin, Image from PIL import FtexImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import GbrImagePlugin, Image from PIL import GbrImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import GdImageFile, UnidentifiedImageError from PIL import GdImageFile, UnidentifiedImageError

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import GimpGradientFile, ImagePalette from PIL import GimpGradientFile, ImagePalette

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL.GimpPaletteFile import GimpPaletteFile from PIL.GimpPaletteFile import GimpPaletteFile

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import GribStubImagePlugin, Image from PIL import GribStubImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Hdf5StubImagePlugin, Image from PIL import Hdf5StubImagePlugin, Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import os import os
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import os import os

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import filecmp import filecmp
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
from io import BytesIO, StringIO from io import BytesIO, StringIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import re import re
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import re import re
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import base64 import base64
import io import io
import itertools import itertools

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, McIdasImagePlugin from PIL import Image, McIdasImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, ImagePalette from PIL import Image, ImagePalette

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os.path import os.path
import subprocess import subprocess

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, ImageFile, PcxImagePlugin from PIL import Image, ImageFile, PcxImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import os import os
import os.path import os.path

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, PixarImagePlugin from PIL import Image, PixarImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import re import re
import sys import sys
import warnings import warnings

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import sys import sys
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, QoiImagePlugin from PIL import Image, QoiImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, SgiImagePlugin from PIL import Image, SgiImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import tempfile import tempfile
import warnings import warnings
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import warnings import warnings
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
from glob import glob from glob import glob
from itertools import product from itertools import product

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import warnings import warnings
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import struct import struct

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import WalImageFile from PIL import WalImageFile
from .helper import assert_image_equal_tofile from .helper import assert_image_equal_tofile

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import re import re
import sys import sys

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from packaging.version import parse as parse_version from packaging.version import parse as parse_version

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, WmfImagePlugin from PIL import Image, WmfImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from io import BytesIO from io import BytesIO
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, XpmImagePlugin from PIL import Image, XpmImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, XVThumbImagePlugin from PIL import Image, XVThumbImagePlugin

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import BdfFontFile, FontFile from PIL import BdfFontFile, FontFile

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont
from .helper import PillowLeakTestCase, skip_unless_feature from .helper import PillowLeakTestCase, skip_unless_feature

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import FontFile from PIL import FontFile

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import colorsys import colorsys
import itertools import itertools

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import io import io
import logging import logging
import os import os

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import os import os
import subprocess import subprocess
import sys import sys

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from packaging.version import parse as parse_version from packaging.version import parse as parse_version

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import copy import copy
import pytest import pytest

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image

View File

@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
from PIL import Image from PIL import Image
from .helper import fromstring, skip_unless_feature, tostring from .helper import fromstring, skip_unless_feature, tostring

Some files were not shown because too many files have changed in this diff Show More