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

undefined _Debug_ in examples of @test_logs of module Test (Julia 1.6.1) #41117

Closed
ajalexei opened this issue Jun 7, 2021 · 1 comment · Fixed by #41343
Closed

undefined _Debug_ in examples of @test_logs of module Test (Julia 1.6.1) #41117

ajalexei opened this issue Jun 7, 2021 · 1 comment · Fixed by #41343
Labels
domain:docs This change adds or pertains to documentation good first issue Indicates a good issue for first-time contributors to Julia

Comments

@ajalexei
Copy link

ajalexei commented Jun 7, 2021

versioninfo():
Julia Version 1.6.1
Commit 6aaedec (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (aarch64-unknown-linux-gnu)
CPU: unknown
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, cortex-a73)

This is a minor bug (I believe) on the webpage: Unit Testing -- Test.@test_logs
— Macro
. The two examples for @test_logs involving min_level=Debug complain that Debug is undefined if executed in the REPL/Jupyter, -- indeed it needs to be imported: import Logging: Debug. This is not mentioned anywhere on the Unit Testing webpage. I suggest adding this missing import statement to the examples.

@fredrikekre
Copy link
Member

Somewhat fixed by #40980 but the examples could use a using Logging I guess.

@fredrikekre fredrikekre added domain:docs This change adds or pertains to documentation good first issue Indicates a good issue for first-time contributors to Julia labels Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation good first issue Indicates a good issue for first-time contributors to Julia
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants