File: tests-Skip-test_server_root_path_handling-on-riscv64.patch

package info (click to toggle)
litestar 2.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,404 kB
  • sloc: python: 69,422; makefile: 137; javascript: 105; sh: 51
file content (33 lines) | stat: -rw-r--r-- 1,313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 16 Mar 2025 08:56:18 +0200
Subject: tests: Skip test_server_root_path_handling on riscv64

This test is flaky on riscv64 and expected to fail.
Mostly as the ASGI side isn't communicating, so the problem seems to be
outside litestar (on the CI infratructure).

Forwarded: not-needed
---
 tests/e2e/test_routing/test_path_resolution.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/e2e/test_routing/test_path_resolution.py b/tests/e2e/test_routing/test_path_resolution.py
index abea468..d2c030c 100644
--- a/tests/e2e/test_routing/test_path_resolution.py
+++ b/tests/e2e/test_routing/test_path_resolution.py
@@ -2,6 +2,7 @@ from pathlib import Path
 from typing import Any, Callable, List, Optional, Type
 
 import httpx
+import platform
 import pytest
 from _pytest.monkeypatch import MonkeyPatch
 
@@ -308,6 +309,7 @@ def test_base_path_param_resolution_2() -> None:
 )
 @pytest.mark.xdist_group("live_server_test")
 @pytest.mark.server_integration
+@pytest.mark.skipif(platform.machine() == "riscv64" , reason="Expected to fail on riscv64, test is running too flaky.")
 def test_server_root_path_handling(
     tmp_path: Path, monkeypatch: MonkeyPatch, server_command: List[str], run_server: Callable[[str, List[str]], None]
 ) -> None: