From 40c6e4f13624955ce7ca4fdbc146c2ad76adb53d Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 8 Nov 2018 06:05:45 +1100 Subject: [PATCH] Do not play sound when running screencapture command --- Tests/test_imagegrab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index 250a7aefe..10e150fc4 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -14,7 +14,7 @@ try: def test_grabclipboard(self): if sys.platform == "darwin": - subprocess.call(['screencapture', '-c']) + subprocess.call(['screencapture', '-cx']) else: p = subprocess.Popen(['powershell', '-command', '-'], stdin=subprocess.PIPE)