unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob cbfefa6c3adcbdaa0ca69b91046bb1e5bf77c02e 2498 bytes (raw)
name: gnu/packages/patches/python-moderngl-window-skip-tests.patch 	 # note: path name is non-authoritative(*)

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
Skip tests for optional dependencies

The Python packages pywavefront and trimesh are optional dependencies and not
yet packaged in Guix but the tests try to load the modules anyway.  Therefore
skip them.

diff --git a/tests/test_docs.py b/tests/test_docs.py
index e4a38df..99a2aa0 100644
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
@@ -133,20 +133,11 @@ class TestCase(unittest.TestCase):
 
     # --- Loaders : Scene ---
 
-    def test_loaders_wavefront(self):
-        self.validate('loaders/wavefront.rst', 'moderngl_window.loaders.scene.wavefront', 'Loader')
-
     def test_loaders_gltf(self):
         self.validate('loaders/gltf2.rst', 'moderngl_window.loaders.scene.gltf2', 'Loader')
 
-    def test_loaders_stl(self):
-        self.validate('loaders/wavefront.rst', 'moderngl_window.loaders.scene.stl', 'Loader')
-
     # --- Loaders : Program ---
 
-    def test_loader_single(self):
-        self.validate('loaders/single.rst', 'moderngl_window.loaders.program.single', 'Loader')
-
     def test_loader_separate(self):
         self.validate('loaders/separate.rst', 'moderngl_window.loaders.program.separate', 'Loader')
 
diff --git a/tests/test_loaders_scene.py b/tests/test_loaders_scene.py
index c577315..2eef889 100644
--- a/tests/test_loaders_scene.py
+++ b/tests/test_loaders_scene.py
@@ -16,16 +16,6 @@ class SceneLoadersTestCase(HeadlessTestCase):
     window_size = (16, 16)
     aspect_ratio = 1.0
 
-    def test_wavefront(self):
-        """Load wavefront file"""
-        scene = resources.scenes.load(SceneDescription(path='scenes/crate/crate.obj'))
-        self.assertIsInstance(scene, Scene)
-
-    def test_wavefont_not_found(self):
-        """Ensure ImproperlyConfigured is raised when wavefront is not found"""
-        with self.assertRaises(ImproperlyConfigured):
-            resources.scenes.load(SceneDescription(path='scenes/doesnotexist.obj'))
-
     def test_gltf(self):
         """Load standard gltf"""
         scene = resources.scenes.load(SceneDescription(path='scenes/BoxTextured/glTF/BoxTextured.gltf'))
@@ -45,7 +35,3 @@ class SceneLoadersTestCase(HeadlessTestCase):
         """Attempt to load nonexisting gltf"""
         with self.assertRaises(ImproperlyConfigured):
             resources.scenes.load(SceneDescription(path='scenes/doesnotexist.gltf'))
-
-    def test_stl(self):
-        scene = resources.scenes.load(SceneDescription(path='scenes/uplink.stl'))
-        self.assertIsInstance(scene, Scene)
-- 
2.33.0

debug log:

solving cbfefa6c3a ...
found cbfefa6c3a in https://yhetil.org/guix-patches/20210915152519.25572-10-daniel.meissner-i4k@ruhr-uni-bochum.de/

applying [1/1] https://yhetil.org/guix-patches/20210915152519.25572-10-daniel.meissner-i4k@ruhr-uni-bochum.de/
diff --git a/gnu/packages/patches/python-moderngl-window-skip-tests.patch b/gnu/packages/patches/python-moderngl-window-skip-tests.patch
new file mode 100644
index 0000000000..cbfefa6c3a

1:18: trailing whitespace.
 \r
1:19: trailing whitespace.
     # --- Loaders : Scene ---\r
1:20: trailing whitespace.
 \r
1:21: trailing whitespace.
-    def test_loaders_wavefront(self):\r
1:22: trailing whitespace.
-        self.validate('loaders/wavefront.rst', 'moderngl_window.loaders.scene.wavefront', 'Loader')\r
Checking patch gnu/packages/patches/python-moderngl-window-skip-tests.patch...
Applied patch gnu/packages/patches/python-moderngl-window-skip-tests.patch cleanly.
warning: squelched 17 whitespace errors
warning: 22 lines add whitespace errors.

index at:
100644 cbfefa6c3adcbdaa0ca69b91046bb1e5bf77c02e	gnu/packages/patches/python-moderngl-window-skip-tests.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).