mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tox test: remove nosetest test (dead since 2015 and doesn't support modern pythons) and replace 36 with 38 since after EOL might be not supported by tox
GitOrigin-RevId: ce670881af625b7cad1d870b51bf0b9c646576a1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a525570091
commit
3cd852df7c
@@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
[testenv]
|
||||
commands=python -c "import sys; assert sys.version_info[:2] == (3,7)"
|
||||
@@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
[testenv]
|
||||
deps=nose
|
||||
commands=nosetests -s
|
||||
@@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
skip_missing_interpreters = True
|
||||
[testenv:py37]
|
||||
commands=python -c "import sys; print('Python ' + str(sys.version))"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
[testenv]
|
||||
deps=pytest
|
||||
commands=pytest
|
||||
@@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py36
|
||||
envlist = py38
|
||||
[testenv]
|
||||
deps=pytest
|
||||
commands=pytest
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py36,py37
|
||||
envlist = py38,py37
|
||||
[testenv]
|
||||
deps=pytest
|
||||
pytest-xdist
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
[testenv]
|
||||
commands=python -c "import sys; assert sys.version_info[:2] == (3,7)"
|
||||
@@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
skipsdist=True
|
||||
envlist = py37, py36
|
||||
envlist = py37, py38
|
||||
[testenv]
|
||||
commands=python -m unittest discover
|
||||
+7
-25
@@ -51,22 +51,6 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
Integer.MAX_VALUE));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check tox nose runner
|
||||
*/
|
||||
@Test
|
||||
public void testToxNose() {
|
||||
runPythonTest(new MyPyProcessWithConsoleTestTask("/toxtest/toxNose/", 1,
|
||||
() -> new MyTestProcessRunner(),
|
||||
Arrays.asList(
|
||||
Pair.create("py37", new InterpreterExpectations("", true)),
|
||||
// Does not support 3.6
|
||||
Pair.create("py36", new InterpreterExpectations("SyntaxError", false))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check tox pytest runner
|
||||
*/
|
||||
@@ -76,8 +60,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
() -> new MyTestProcessRunner(),
|
||||
Arrays.asList(
|
||||
Pair.create("py37", new InterpreterExpectations("", true)),
|
||||
// Does not support 3.4
|
||||
Pair.create("py36", new InterpreterExpectations("SyntaxError", false))
|
||||
Pair.create("py38", new InterpreterExpectations("Assertion", false))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
@@ -89,7 +72,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
runPythonTest(new MyPyProcessWithConsoleTestTask("/toxtest/toxPyTestXDist/", 1,
|
||||
() -> new MyTestProcessRunner(),
|
||||
Arrays.asList(
|
||||
Pair.create("py36", new InterpreterExpectations("", false)),
|
||||
Pair.create("py38", new InterpreterExpectations("", false)),
|
||||
Pair.create("py37", new InterpreterExpectations("", true))
|
||||
),
|
||||
Integer.MAX_VALUE) {
|
||||
@@ -114,7 +97,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
runPythonTest(new MyPyProcessWithConsoleTestTask("/toxtest/toxPyTestPy3k/", 1,
|
||||
() -> new MyTestProcessRunner(),
|
||||
Collections.singletonList(
|
||||
Pair.create("py36", new InterpreterExpectations("", true))
|
||||
Pair.create("py38", new InterpreterExpectations("", true))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
@@ -129,8 +112,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
() -> new MyTestProcessRunner(),
|
||||
Arrays.asList(
|
||||
Pair.create("py37", new InterpreterExpectations("", true)),
|
||||
// Does not support 3.4
|
||||
Pair.create("py36", new InterpreterExpectations("SyntaxError", false))
|
||||
Pair.create("py38", new InterpreterExpectations("Assertion", false))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
@@ -145,7 +127,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
() -> new MyTestProcessRunner(),
|
||||
Arrays.asList(
|
||||
Pair.create("py37", new InterpreterExpectations("ython 3.7", true)),
|
||||
Pair.create("py36", new InterpreterExpectations("", false))
|
||||
Pair.create("py38", new InterpreterExpectations("", false))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
@@ -192,7 +174,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
Arrays.asList(
|
||||
//26 and 37 only used for first time, they aren't used after rerun
|
||||
Pair.create("py37", new InterpreterExpectations("", true, 1)),
|
||||
Pair.create("py36", new InterpreterExpectations("", false))
|
||||
Pair.create("py38", new InterpreterExpectations("", false))
|
||||
),
|
||||
Integer.MAX_VALUE)
|
||||
);
|
||||
@@ -241,7 +223,7 @@ public final class PyToxTest extends PyEnvTestCase {
|
||||
*/
|
||||
@Test
|
||||
public void testConcreteEnv() {
|
||||
final String[] envsToRun = {"py37", "py36"};
|
||||
final String[] envsToRun = {"py37", "py38"};
|
||||
runPythonTest(
|
||||
new PyProcessWithConsoleTestTask<PyAbstractTestProcessRunner<PyToxConfiguration>>("/toxtest/toxSuccess/", SdkCreationType.EMPTY_SDK) {
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user