Skip to content

Commit

Permalink
Tests and docs: remove useless lines between imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Feb 24, 2019
1 parent 580e891 commit 4b15410
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 28 deletions.
2 changes: 0 additions & 2 deletions docs/source/examples/fps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
import time

import cv2

import mss

import numpy


Expand Down
4 changes: 2 additions & 2 deletions docs/source/examples/linux_display_keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Usage example with a specific display.
"""

from mss.linux import MSS
import mss


with MSS(display=":0.0") as sct:
with mss.mss(display=":0.0") as sct:
for filename in sct.save():
print(filename)
2 changes: 0 additions & 2 deletions docs/source/examples/opencv_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
import time

import cv2

import mss

import numpy


Expand Down
3 changes: 1 addition & 2 deletions docs/source/examples/pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
PIL example using frombytes().
"""

from PIL import Image

import mss
from PIL import Image


with mss.mss() as sct:
Expand Down
3 changes: 1 addition & 2 deletions docs/source/examples/pil_pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
PIL examples to play with pixels.
"""

from PIL import Image

import mss
from PIL import Image


with mss.mss() as sct:
Expand Down
4 changes: 1 addition & 3 deletions tests/bench_bgra2rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@

import time

from PIL import Image

import mss

import numpy
from PIL import Image


def mss_rgb(im):
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import os

import mss

import pytest


Expand Down
3 changes: 1 addition & 2 deletions tests/test_bgra_to_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
Source: https://github.com/BoboTiG/python-mss
"""

from mss.base import ScreenShot

import pytest
from mss.base import ScreenShot


def test_bad_length():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_get_pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
Source: https://github.com/BoboTiG/python-mss
"""

import pytest
from mss.base import ScreenShot
from mss.exception import ScreenShotError

import pytest


def test_grab_monitor(sct):
for mon in sct.monitors:
Expand Down
3 changes: 1 addition & 2 deletions tests/test_gnu_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
import platform

import mss
import pytest
from mss.base import MSSMixin
from mss.exception import ScreenShotError

import pytest


if platform.system().lower() != "linux":
pytestmark = pytest.mark.skip
Expand Down
3 changes: 1 addition & 2 deletions tests/test_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import platform
from typing import TYPE_CHECKING

from mss import mss

import pytest
from mss import mss

if TYPE_CHECKING:
from typing import Callable # noqa
Expand Down
3 changes: 1 addition & 2 deletions tests/test_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import platform

import mss
from mss.exception import ScreenShotError

import pytest
from mss.exception import ScreenShotError


if platform.system().lower() != "darwin":
Expand Down
3 changes: 1 addition & 2 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import os.path
import zlib

from mss.tools import to_png

import pytest
from mss.tools import to_png


WIDTH = 10
Expand Down
3 changes: 1 addition & 2 deletions tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import platform

import mss
from mss.exception import ScreenShotError

import pytest
from mss.exception import ScreenShotError


if platform.system().lower() != "windows":
Expand Down

0 comments on commit 4b15410

Please sign in to comment.