Files
buildroot/support/testing/tests/package/sample_python_requests.py
Marcus Hoffmann c4f6278bb8 support/testing: python-requests: new runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
[Peter: Fix flake8 warning, use http.server instead of relying on
        connectivity]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 425abcd025)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2026-02-12 15:01:07 +01:00

5 lines
82 B
Python

import requests
r = requests.get("http://localhost")
assert r.status_code == 200