We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd0854 commit 1cef4bfCopy full SHA for 1cef4bf
src/tests/conftest.py
@@ -63,6 +63,6 @@ def pixel_ratio() -> int:
63
# Grab a 1x1 screenshot
64
region = {"top": 0, "left": 0, "width": 1, "height": 1}
65
66
- with mss(display=os.getenv("DISPLAY")) as sct:
67
- # On macOS with Retina display, the width will be 2 instead of 1
+ with mss() as sct:
+ # On macOS with Retina display, the width can be 2 instead of 1
68
return sct.grab(region).size[0]
0 commit comments