From b009314828f07a66c667a6f42e1e609751b1c543 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 28 Jan 2024 16:34:51 +1100 Subject: [PATCH] clear --- .github/workflows/test.yml | 8 ++------ Tests/test_imagegrab.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5206c6fd829..0069f9c8c70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,17 +29,13 @@ jobs: fail-fast: false matrix: os: [ + "macos-latest", "ubuntu-latest", ] python-version: [ "3.12", + "3.11", ] - include: - - python-version: "3.9" - PYTHONOPTIMIZE: 1 - REVERSE: "--reverse" - - python-version: "3.8" - PYTHONOPTIMIZE: 2 runs-on: ${{ matrix.os }} name: ${{ matrix.os }} Python ${{ matrix.python-version }} diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index efef4d90807..ce7b2b68907 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -127,7 +127,7 @@ def test_grabclipboard_wl_clipboard(self, ext): ), reason="Linux with wl-clipboard only", ) - @pytest.mark.parametrize("arg", ("text", "--clear")) + @pytest.mark.parametrize("arg", ("--clear",)) def test_grabclipboard_wl_clipboard_errors(self, arg): subprocess.call(["wl-copy", arg]) assert ImageGrab.grabclipboard() is None