Bugfix from upstream. Replaced nonexistent error.MethodOverrideError with AssertionError.