nixpkgs/pkgs/applications/video/manim/pytest-report-header.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
729 B
Diff
Raw Normal View History

2023-10-17 16:44:50 +00:00
diff --git a/conftest.py b/conftest.py
index dacb730a..149c6702 100644
2023-10-17 16:44:50 +00:00
--- a/conftest.py
+++ b/conftest.py
@@ -33,17 +33,3 @@ def temp_media_dir(tmpdir, monkeypatch, request):
2023-10-17 16:44:50 +00:00
with tempconfig({"media_dir": str(tmpdir)}):
assert config.media_dir == str(tmpdir)
yield tmpdir
-
-
-def pytest_report_header(config):
- ctx = moderngl.create_standalone_context()
- info = ctx.info
- ctx.release()
- return (
- f"\nCairo Version: {cairo.cairo_version()}",
2023-10-17 16:44:50 +00:00
- "\nOpenGL information",
- "------------------",
- f"vendor: {info['GL_VENDOR'].strip()}",
- f"renderer: {info['GL_RENDERER'].strip()}",
- f"version: {info['GL_VERSION'].strip()}\n",
- )