Testbed failures on macOS #2203
Replies: 3 comments 11 replies
-
I can't say I've seen that particular set of failures before. I've just run the test suite on Python 3.12.0, on macOS 13.5.2, on a 16" M1 Pro-based MacBook Pro - I get no test failures (I do see 2 missing branch coverage failures, but those looks like they're due to changes in how coverage is computed in Python 3.12). One thing I've noticed is that a failure in the window tests can sometimes have cascading impacts on subsequent tests. The tests should be isolated, but that's difficult to guarantee when the tests are all running in the same "app". As a result, a failure in the window tests can change the size of the window; and if the test doesn't recover correctly, that can cause subsequent tests to fail because the window isn't the expected size. Some ideas on how to narrow this down:
|
Beta Was this translation helpful? Give feedback.
-
😳 Well.. that would do it then :-) I presume you have the "Prefer tabs when opening documents" display setting to True? The immediate fix will be to turn off that setting (or at least make it "full screen only"). That's definitely something worth documenting in the contribution guide. Ideally, the test suite wouldn't be sensitive to this setting - either turning it off on a per-app basis, or identifying when it's turned on and validating the different behavior. I'm not sure how easy that would be though - just documenting "don't do this" may be the much easier option. Either way... fancy trying your hand at a PR? |
Beta Was this translation helpful? Give feedback.
-
Okay, I may need a little hand-holding here. (I appreciate you taking the time to let me try a PR for something you've obviously already figured out how to fix.) I can verify that the class I also see in the I've never messed with interfacing to Objective C — what am I missing? How to I successfully turn off that flag? Also if my debugging print calls are to be believed, the |
Beta Was this translation helpful? Give feedback.
-
I believe I have my development environment set up correctly — I have an editable install from my (up-to-date) fork of the repo, and the core test suite runs just fine. However, the testbed test suite fails, mostly about various sizing checks:
Since I've seen that everything passes on CI, I'm wondering if perhaps I have something misconfigured; at the same time, I'm not on the same version of macOS as the CI server, so perhaps there's a version-dependent bug?
Any idea what might be doing this? I can provide the full results of the failed tests if that would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions