[New-bugs-announce] [issue38108] Everything in Mock should inherit from Base
report at bugs.python.org
Wed Sep 11 09:24:30 EDT 2019
New submission from Lisa Roach <lisaroach14 at gmail.com>:
Everything within Mock should be inheriting from the top-level parent class, Base (and properly call super).
For multiple inheritance to work correctly they all should be inheriting from the same parent class ultimately.
Classes that need update:
NonCallableMock (instance = object.__new__(new) should be switched to a super call here)
nosy: ezio.melotti, lisroach, michael.foord, xtreak
title: Everything in Mock should inherit from Base
versions: Python 3.8, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce