comparison tests/mockutil.py @ 198:1d44d8bd93e2

tests: Remove debug output.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 13 Jan 2015 20:40:22 -0800
parents a54d3c0b5f4a
children 7544c03b6bab
comparison
equal deleted inserted replaced
197:57eec8a67095 198:1d44d8bd93e2
245 def _createMock(self, name, orig, func, **kwargs): 245 def _createMock(self, name, orig, func, **kwargs):
246 self._originals[name] = orig 246 self._originals[name] = orig
247 self._patchers.append(mock.patch(name, func, **kwargs)) 247 self._patchers.append(mock.patch(name, func, **kwargs))
248 248
249 def _doOpen(self, orig_name, path, mode, *args, **kwargs): 249 def _doOpen(self, orig_name, path, mode, *args, **kwargs):
250 print("Opening %s" % path)
251 path = os.path.normpath(path) 250 path = os.path.normpath(path)
252 if path.startswith(resources_path): 251 if path.startswith(resources_path):
253 return self._originals[orig_name](path, mode, *args, **kwargs) 252 return self._originals[orig_name](path, mode, *args, **kwargs)
254 253
255 if 'r' in mode: 254 if 'r' in mode: