Group :: Desenvolvimento/Outros
RPM: pybind11
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-e2k-workaround-for-broken-tests.patch
Download
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):