Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/attr_tests: fix tests with setattr
Since Python objects will dynamically add an attribute if one does not exist when calling setattr(), we need to check that the attribute actually exists before setting it. Otherwise, tests will pass even if the attribute is not defined in the object being tested. Signed-off-by: David Lechner <[email protected]>
- Loading branch information