Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37889057
en ru br
ALT Linux repos
S:2.11.1-alt1

Group :: Development/Other
RPM: pybind11

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-e2k-workaround-for-broken-tests.patch
Download


diff --git a/tests/test_factory_constructors.py b/tests/test_factory_constructors.py
index ffcce6f..cadd2a0 100644
--- a/tests/test_factory_constructors.py
+++ b/tests/test_factory_constructors.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 import pytest
 import re
+import os
 
 import env  # noqa: F401
 
@@ -349,6 +350,7 @@ def create_and_destroy(*args):
 def strip_comments(s):
     return re.sub(r"\s+#.*", "", s)
 
+@pytest.mark.skipif('SKIP_E2K' in os.environ, reason="forced test skip")
 
 def test_reallocation_a(capture, msg):
     """When the constructor is overloaded, previous overloads can require a preallocated value.
diff --git a/tests/test_virtual_functions.py b/tests/test_virtual_functions.py
index f7d3bd1..9ea5263 100644
--- a/tests/test_virtual_functions.py
+++ b/tests/test_virtual_functions.py
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 import pytest
+import os
 
 import env  # noqa: F401
 
@@ -189,6 +190,7 @@ def test_alias_delay_initialization2(capture):
 @pytest.mark.skipif(
     not hasattr(m, "NCVirt"), reason="NCVirt does not work on Intel/PGI/NVCC compilers"
 )
+@pytest.mark.skipif('SKIP_E2K' in os.environ, reason="forced test skip")
 def test_move_support():
     class NCVirtExt(m.NCVirt):
         def get_noncopyable(self, a, b):
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin