question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test "!python should point to the Environment" is failing

See original GitHub issue

possibly need to clear the workspace interpreter setting

Environment data

  • VS Code version: XXX
  • Jupyter Extension version (available under the Extensions sidebar): XXX
  • Python Extension version (available under the Extensions sidebar): XXX
  • OS (Windows | Mac | Linux distro) and version: XXX
  • Python and/or Anaconda version: XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): XXX
  • Jupyter server running: Local | Remote | N/A

Expected behaviour

XXX

Actual behaviour

XXX

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. XXX

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
DonJayamannecommented, Mar 10, 2022

even on the PR that was intended to fix it

please could you point to a ci run so i can have a look

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit tests are failing after adding environment variable to main ...
The environment variable needs to be set in the project's repository in travis CI so that all files have access to it.
Read more >
Pytest running doesn't take into consideration env. #6891
Actual behaviour. Tests that depend on a specific environment variable being set to run fail. ... PYTHONPATH must be relative not absolute.
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
Any exception, other than AssertionError or SkipTest , raised by this method will be considered an additional error rather than a test failure...
Read more >
Python's assert: Debug and Test Your Code Like a Pro
In this tutorial, you'll learn how to use Python's assert statement to document, debug, and test code in development.
Read more >
Debugging Your Unit Test Suite in Python | Capital One
If you run your tests with pytest --pdb, it will automatically drop into a debugger on every test that fails or has an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found