Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Explicitly import functools.reduce to play well with py3k. #5

Merged
merged 1 commit into from
Jun 30, 2014

Conversation

kimgr
Copy link
Contributor

@kimgr kimgr commented Jun 30, 2014

This one is a little silly, but I wanted to keep it isolated.

As it turns out, that might be a good idea, because I'm suddenly seeing a test going flaky: parallel-simple.mk fails sometimes with this patch applied, and I haven't seen it fail before.

I can't see how this patch would cause any trouble there, and the test looks rather timing-sensitive, so I'm going to blame my antivirus for now.

Just reject it if you feel uncomfortable, and I can reimplement the single use of reduce() with a plain loop or something.

@indygreg
Copy link
Contributor

I don't see how this could cause new flaky tests. functools.reduce == builtins reduce in Python 2. Besides, parallel-simple.mk looks somewhat flaky to me.

indygreg added a commit that referenced this pull request Jun 30, 2014
Explicitly import functools.reduce to play well with py3k.
@indygreg indygreg merged commit 2a3c177 into mozilla:master Jun 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants