Skip to content

Commit

Permalink
Exclude line from coverage because of a discrepancy on Sonoma.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 20, 2024
1 parent 63d25ae commit 075c270
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cocoa/src/toga_cocoa/widgets/internal/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ def constrainScrollPoint_(self, proposedNewOrigin: NSPoint) -> NSPoint:
argtypes=[NSPoint],
)

if self.superview and self.superview.is_refreshing:
# FIXME: This has been marked no-cover so that ARM64 testing can be enabled;
# ARM64 CI can only run on Sonoma, and it looks like Sonoma has turned off
# scroll elasticity by default, which prevents pull-to-refresh from working.
# See Toga#2412 for details. If that ticket is closed, it should be possible
# to remove this this no-cover.
if self.superview and self.superview.is_refreshing: # pragma: no cover
return NSMakePoint(
constrained.x,
max(
Expand Down

0 comments on commit 075c270

Please sign in to comment.