Coder Social home page Coder Social logo

Comments (6)

kondratyev-nv avatar kondratyev-nv commented on June 15, 2024 1

@yozlet Just a small update on this issue. I have tried to reproduce it on my Linux machine, and everything worked as expected. A little bit later I will try to reproduce this on Mac and CI.

from vscode-python-test-adapter.

kondratyev-nv avatar kondratyev-nv commented on June 15, 2024 1

It looks like this is a pytest bug happening when using -l (--showlocals) and -vv together. I've created the issue pytest-dev/pytest#5089 and look forward to what pytest devs thinking about it.

from vscode-python-test-adapter.

kondratyev-nv avatar kondratyev-nv commented on June 15, 2024

@yozlet Thank you for the issue! I'll take a look.

from vscode-python-test-adapter.

yozlet avatar yozlet commented on June 15, 2024

Ah, here's the differentiator - the --showlocals argument:

"python.unitTest.pyTestArgs": ["--showlocals", "-vv"]

Without --showlocals, the Test Adapter works fine.

Trouble is, --showlocals is just massively useful for fixing tests quickly without needing to run the debugger. It's so useful that maybe you could do something with the data it reports? (Though that's a separate feature request.)

from vscode-python-test-adapter.

kondratyev-nv avatar kondratyev-nv commented on June 15, 2024

@yozlet The issue in pytest has already been fixed. I will close this issue since it has nothing to do with the extension. Please, recheck this case after the new release of pytest. If there would be any other problems, feel free to create a new issue.

from vscode-python-test-adapter.

yozlet avatar yozlet commented on June 15, 2024

Many thanks for chasing this up and fixing it on the pytest side - that's far beyond the call of duty!

from vscode-python-test-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.