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
[...]tests/__init__.py", line 17, in setUp
self.setUpPyfakefs()
File "/usr/local/lib/python3.4/dist-packages/pyfakefs-2.4-py3.4.egg/fake_filesystem_unittest.py", line 87, in setUpPyfakefs
self._stubber.setUp()
File "/usr/local/lib/python3.4/dist-packages/pyfakefs-2.4-py3.4.egg/fake_filesystem_unittest.py", line 201, in setUp
startPatch(self, '__builtin__.file', self.fake_open)
File "/usr/local/lib/python3.4/dist-packages/pyfakefs-2.4-py3.4.egg/fake_filesystem_unittest.py", line 198, in startPatch
print("Warning: Could not patch '{}' on module '{}' because '{}' resolves to {}".format(attribute, target, target, patch.getter()))
File "/usr/local/lib/python3.4/dist-packages/mock.py", line 1414, in <lambda>
getter = lambda: _importer(target)
File "/usr/local/lib/python3.4/dist-packages/mock.py", line 1098, in _importer
thing = __import__(import_path)
nose.proxy.ImportError: No module named '__builtin__'
Warning: Could not patch 'file' on module 'builtins' because 'builtins' resolves to <module 'builtins' (built-in)>
See mock module bug 250, https://code.google.com/p/mock/issues/detail?id=250
I have crash as follows
In Line 201 of
fake_filesystem_unittest.py
the old name
__builtin__
is used instead of python3 versionbuiltins
.In
mock.py
as included in Traceback you can find the lineThe text was updated successfully, but these errors were encountered: