Steps to Reproduce: Install Python 3.13.0 and Pytest 8.3.3 Create a python file in VS Code, e.g. pytest_test.py Type code: import pytest compile and run Result: Error message; "ModuleNotFoundError: No module named 'pytest'" Note: I can run pytest and the Python file with "import p...
Environment Windows 10 Pylance v2022.2.0 Python v2022.0.1814523869 Pytest BDD v0.3.17 Python 3.10.2 with venv The following code reports a problem in VSCode from py.xml import html In 'normal' python the following appears to work correct...
you want to avoid changing the directory structure. For example, the framework you use in your code (such as django, pytest, airflow, fastapi or flask) or the environment you work with (such as pycharm, vscode or jupyter notebook) depend on this directory structure. In those cases, you ...
add test for import pytest error #21472 Merged eleanorjboyd merged 1 commit into microsoft:main from eleanorjboyd:add-import-error-test Jun 22, 2023 Conversation 0 Commits 1 Checks 29 Files changed Conversation Member eleanorjboyd commented Jun 22, 2023 fixes #21470 add test for import ...
That's right, I opened it from the project directory, not my home directory. I never open vscode in the parent directory where I would see both project I renamed the package in test-repo-two so that I could run pytest from the parent folder, and it turns out I had to run pip insta...