forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-uuid-and-disposing
- Loading branch information
Showing
35 changed files
with
1,082 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
# This image will serve as a starting point for devcontainer.json. | ||
# Get latest image of Fedora as the base image. | ||
FROM docker.io/library/fedora:latest | ||
FROM mcr.microsoft.com/devcontainers/typescript-node:16-bookworm | ||
|
||
# Install supported python versions and nodejs. | ||
RUN dnf -y --nodocs install /usr/bin/{python3.7,python3.8,python3.9,python3.10,python3.11,git,conda,clang} && \ | ||
dnf clean all | ||
RUN apt-get install -y wget bzip2 | ||
|
||
ENV NVM_VERSION=0.39.3 | ||
ENV NODE_VERSION=16.17.1 | ||
ENV NPM_VERSION=8.19.3 | ||
|
||
# Installation instructions from https://github.com/nvm-sh/nvm . | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh | bash | ||
RUN export NVM_DIR="$HOME/.nvm" && \ | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \ | ||
nvm install $NODE_VERSION && \ | ||
npm install -g npm@$NPM_VERSION | ||
|
||
# For clean open source builds. | ||
ENV DISABLE_TRANSLATIONS=true | ||
# Run in silent mode and save downloaded script as anaconda.sh. | ||
# Run with /bin/bash and run in silent mode to /opt/conda. | ||
# Also get rid of installation script after finishing. | ||
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2023.07-1-Linux-x86_64.sh -O ~/anaconda.sh && \ | ||
/bin/bash ~/anaconda.sh -b -p /opt/conda && \ | ||
rm ~/anaconda.sh | ||
|
||
ENV PATH="/opt/conda/bin:$PATH" | ||
|
||
# Sudo apt update needs to run in order for installation of fish to work . | ||
RUN sudo apt update && \ | ||
sudo apt install fish -y | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
|
||
def test_a_function(): # test_marker--test_a_function | ||
assert True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
|
||
def test_b_function(): # test_marker--test_b_function | ||
assert True |
13 changes: 13 additions & 0 deletions
13
pythonFiles/tests/pytestadapter/.data/unittest_skiptest_file_level.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
import unittest | ||
from unittest import SkipTest | ||
|
||
# Due to the skip at the file level, no tests will be discovered. | ||
raise SkipTest("Skip all tests in this file, they should not be recognized by pytest.") | ||
|
||
|
||
class SimpleTest(unittest.TestCase): | ||
def testadd1(self): | ||
assert True |
Oops, something went wrong.