python312Packages.textual: skip flaky tests also on linux (#382008)
This commit is contained in:
@@ -1,22 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
jinja2,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
markdown-it-py,
|
||||
platformdirs,
|
||||
poetry-core,
|
||||
rich,
|
||||
typing-extensions,
|
||||
|
||||
# optional-dependencies
|
||||
tree-sitter,
|
||||
tree-sitter-languages,
|
||||
|
||||
# tests
|
||||
jinja2,
|
||||
pytest-aiohttp,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
pythonAtLeast,
|
||||
rich,
|
||||
syrupy,
|
||||
time-machine,
|
||||
tree-sitter,
|
||||
tree-sitter-languages,
|
||||
typing-extensions,
|
||||
pythonAtLeast,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -35,8 +42,8 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies =
|
||||
[
|
||||
platformdirs
|
||||
markdown-it-py
|
||||
platformdirs
|
||||
rich
|
||||
typing-extensions
|
||||
]
|
||||
@@ -59,15 +66,14 @@ buildPythonPackage rec {
|
||||
tree-sitter
|
||||
];
|
||||
|
||||
disabledTestPaths =
|
||||
[
|
||||
# Snapshot tests require syrupy<4
|
||||
"tests/snapshot_tests/test_snapshots.py"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# RuntimeError: There is no current event loop in thread 'MainThread'.
|
||||
"tests/test_focus.py"
|
||||
];
|
||||
disabledTestPaths = [
|
||||
# Snapshot tests require syrupy<4
|
||||
"tests/snapshot_tests/test_snapshots.py"
|
||||
|
||||
# Flaky: https://github.com/Textualize/textual/issues/5511
|
||||
# RuntimeError: There is no current event loop in thread 'MainThread'.
|
||||
"tests/test_focus.py"
|
||||
];
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
@@ -101,6 +107,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/Textualize/textual";
|
||||
changelog = "https://github.com/Textualize/textual/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
maintainers = with lib.maintainers; [ gepbird ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user