Test server/ui/change_processing.py makes an assumption about the order
in which benchmark are listed when a regression occurs but these are put
in a set before being iterated over for printing. Since set have no
guarantee of order, the test is fragile and fails on Python 3 due to
different implementation of Set. This commit sort the benchmark when
printing them so that the output is consistent. It also adapts the
testcase accordingly.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 41934 Build 42269: arc lint + arc unit
Event Timeline
tests/server/ui/change_processing.py | ||
---|---|---|
214–216 | I would still add a comment here that "bar, foo" should be in alphabetical order to mach assert with sorted(). |
Comment Actions
Add comment to explain assumptions
tests/server/ui/change_processing.py | ||
---|---|---|
214–216 | Good point. |
I would still add a comment here that "bar, foo" should be in alphabetical order to mach assert with sorted().