Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not error when showing invalid enums (#40042) #41596

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

jakobnissen
Copy link
Contributor

Fix #40042 using the code that @vtjnash suggested. I have not added tests due to the principle of not testing printing, but it does solve the problem when manually testing it out.

@simeonschaub
Copy link
Member

I have not added tests due to the principle of not testing printing

We definitely do test printing in Base, would be good to add some tests here.

@simeonschaub simeonschaub added display and printing Aesthetics and correctness of printed representations of objects. bugfix This change fixes an existing bug needs tests Unit tests are required for this change labels Jul 15, 2021
@jakobnissen
Copy link
Contributor Author

Tests should be good now.

@vtjnash vtjnash removed the needs tests Unit tests are required for this change label Jul 15, 2021
@KristofferC KristofferC added backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Jul 15, 2021
@KristofferC
Copy link
Member

According to #40042 (comment), triage said that the check should be done in printing.

@KristofferC KristofferC merged commit 02807b2 into JuliaLang:master Jul 19, 2021
KristofferC pushed a commit that referenced this pull request Jul 19, 2021
KristofferC pushed a commit that referenced this pull request Jul 20, 2021
KristofferC pushed a commit that referenced this pull request Jul 26, 2021
KristofferC pushed a commit that referenced this pull request Aug 31, 2021
KristofferC pushed a commit that referenced this pull request Sep 3, 2021
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Sep 7, 2021
@jakobnissen jakobnissen deleted the printenum branch September 8, 2022 14:27
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dump function fails for dicts of enums
4 participants