File: fix_test_dg0.patch

package info (click to toggle)
fenics-dolfinx 1%3A0.10.0.post3-1exp5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,012 kB
  • sloc: cpp: 36,535; python: 25,391; makefile: 223; sh: 171; xml: 55
file content (19 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: fenics-dolfinx/python/test/unit/io/test_adios2.py
===================================================================
--- fenics-dolfinx.orig/python/test/unit/io/test_adios2.py	2025-11-18 20:05:10.187206702 +0100
+++ fenics-dolfinx/python/test/unit/io/test_adios2.py	2025-11-18 20:07:11.488120099 +0100
@@ -252,12 +252,12 @@
 
     def test_dg_0_data(self, tempdir):
         """Test that we can mix DG-0 and other Lagrange functions."""
-        from dolfinx.io import VTXWriter
-
         adios2 = pytest.importorskip("adios2", minversion="2.10.0")
         if not adios2.is_built_with_mpi:
             pytest.skip("Require adios2 built with MPI support")
 
+        from dolfinx.io import VTXWriter
+
         mesh = generate_mesh(2, False)
         v = Function(functionspace(mesh, ("Lagrange", 2, (2,))))
         filename = Path(tempdir, "v.bp")