Yannick Jadoul 71aea49b8b
Check scope's __dict__ instead of using hasattr when registering classes and exceptions (#2335)
* Check scope's __dict__ instead of using hasattr when registering classes and exceptions, to allow registering the same name in a derived class scope

* Extend test_base_and_derived_nested_scope test

* Add tests on error being thrown registering duplicate classes

* Circumvent bug with combination of test_class.py::test_register_duplicate_class and test_factory_constructors.py::test_init_factory_alias
2020-10-09 01:09:56 +02:00
..
2020-08-20 11:58:34 -04:00
2017-01-31 17:05:44 +01:00
2020-07-26 09:25:27 -04:00
2020-10-08 12:25:04 -04:00
2020-10-05 22:36:33 -04:00