[issue11572] bring Lib/copy.py to 100% coverage
report at bugs.python.org
Sat Mar 19 14:36:44 CET 2011
Éric Araujo <merwok at netwok.org> added the comment:
- reductor = getattr(x, "__reduce__", None)
- if reductor:
- rv = reductor()
- raise Error("un(shallow)copyable object of type %s" % cls)
+ raise Error("un(shallow)copyable object of type %s" % cls)
Why change this?
> self.assertTrue(issubclass(copy.Error, Exception))
You could change that to assertIsInstance.
> -def _test():
I assume that all cases that were tested in that function are covered by unit tests.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list