testing-cabal / mock

The Python mock library
https://docs.python.org/dev/library/unittest.mock.html
BSD 2-Clause "Simplified" License
536 stars 107 forks source link

Syntax Error in 4.0.0 #478

Closed chrisconlon-klaviyo closed 4 years ago

chrisconlon-klaviyo commented 4 years ago

There is a syntax error here in v4.0.0 that a build of mine accidentally pulled in after the release got published.

I'll see if I can open a PR with a fix, but I'm starting here just to flag it.

cjw296 commented 4 years ago

What version of Python are you using?

chrisconlon-klaviyo commented 4 years ago

This was on a 2.7 build. I drafted a PR here: https://github.com/testing-cabal/mock/pull/479

Not sure of this projects contribution guidelines.

cjw296 commented 4 years ago

Mock is no longer compatible with Python 2.

Please see the documentation and the release metadata.

I'd suggest upgrading your installation tools so that they respect the metadata in pypi, and get off Python 2 as soon as possible.