You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My immediate question was "What could have happened that this should suddenly fail?" The answer is "Nothing!" For each CI run, reference_find is called 1000 times with random input. There is obviously a non-zero probabilty of generating this corner case for which the test as a whole is wrong. Hence we get an occasional bogus failure. Some possible fixes:
Do not generate this corner case; I have no idea how right now.
Do not test this easy-to-detect case: if not p or not text: continue after text is generated, or perhaps if not p: continue after p is generated.
Change reference_find to return 0 for this case, making sure to not introduce another bug.
The test was added in #86138, with PR by Dennis Sweeny and Tim Peters.
Uh oh!
There was an error while loading. Please reload this page.
A recent test failure:
The issue is
reference_find
:When
s == p == ''
, we getfor i in range(0)
, and then-1
is returned instead of the actual result which should be 0.Linked PRs
The text was updated successfully, but these errors were encountered: