derwiki-adroll / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Require unittest.mock with Python >=3.3 #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
mock is incompatible with Python 3.4 (32 errors in test suite of mock).

Unfortunately some projects use:
  import mock
instead of:
  try:
      from unittest import mock
  except ImportError:
      import mock

I suggest that mock require using unittest.mock with Python >=3.3. I attach 
patch for mock.

Original issue reported on code.google.com by Arfrever...@gmail.com on 6 Mar 2014 at 7:56

Attachments: