Closed copybara-service[bot] closed 12 months ago
Don't try to compare fakes to real objects
Real object comparison sometimes tries to access private members, which are obvously missing on fakes. This results in confusing errors.
To prevent those, just fail the comparison immediately if one thing is a fake while the other one is not.
Don't try to compare fakes to real objects
Real object comparison sometimes tries to access private members, which are obvously missing on fakes. This results in confusing errors.
To prevent those, just fail the comparison immediately if one thing is a fake while the other one is not.