Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Properly reference class types in tests #19

Open
Ferada opened this issue May 8, 2018 · 0 comments
Open

Properly reference class types in tests #19

Ferada opened this issue May 8, 2018 · 0 comments
Labels

Comments

@Ferada
Copy link
Owner

Ferada commented May 8, 2018

C.f. #18 - the tests can fail if the classes haven't been initialised - the proper way might be to have a fixture that calls g-type-class-ref and -unref around the tests which use e.g. GtkButton without creating an instance before looking at signals and so on, obviously that would be a bit more logic for not a lot of gain, but it would be strictly more safe than relying on the GC not removing that class too early (although some comments in GLib/GObject seem to indicate that the instantiated classes shouldn't disappear again, "static types").

@Ferada Ferada added the bug label May 8, 2018
@Ferada Ferada closed this as completed Jun 4, 2019
@Ferada Ferada reopened this Jun 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant