-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adding markers (@mark.asyncio) make discovery fails #20290
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
Comments
🌵 Found issue. (Sorry, already looked for hours and did not found previously). An import in test code missed env configuration at discovery time and made it failed without any indication. |
Hello @titouanfreville! Thank you for all your careful investigation, this is very useful to us! We are sorry that this issue occurred. To clarify, does this issue still exist for you or were you able to reconfigure to have the import get the env configuration at discovery time? Could you send over your env configuration that caused the error? I will take a closer look at this and appreciate you submitted this issue to our repo! |
Hello, @eleanorjboyd. The strange thing is that there are no line related to those issue when running the command manually and it provides a correct result 💫 An easy reproduction would be to have a file that depends on some env being loaded and import it without setuping env in the test files. |
@titouanfreville, thank you for the extra info! I will look into this. |
Hello @titouanfreville! Sorry for the delay in circling back. Yes you are correct about it relating to #18431 and therefore the fix for it is the feature request, #17171. Given we already have an issue tracking this I am going to close this issue in favor of the feature request. Thank you again for all your work debugging and I am sorry you encountered this lack of functionality with environment variables. |
Uh oh!
There was an error while loading. Please reload this page.
Type: Bug
Hello,
I have a strange issue and test discovery. While making new test asynchronus, the test discovery began to broke.
With the exact same test case, adding only async markers and async test methods, the discovery fails with asyncs on, and pass correctly wihout them.
I looked at the output of the discovery command, both are exactly the same expect for the line number due to markers being added.
Test run correctly directly from command line.
Behaviour
Expected vs. Actual
Expected
Discovery works
Actual
Discovery fails without any error message
Discovery outputs
Ok: https://drive.google.com/file/d/1Zqsxk8pW_hcttCnAFydbOqyNX_KU1-ul/view?usp=share_link
Ko: https://drive.google.com/file/d/18aocozebcQ1Rfwsz_g9_CVtiTs40Zxzf/view?usp=share_link
Steps to reproduce:
I do not know how to reproduce on a simpler code base. Already added some async markers without issue so it feel strange.
I will try to reproduce on simpler project
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2022.18.2
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T03:54:53.913Z)
OS version: Linux x64 6.0.6-76060006-generic
Modes:
Sandboxed: No
Remote OS version: Linux x64 6.0.6-76060006-generic
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: