|
|
788fbf |
From da48b31f7d1e247ed6e00ee09b8c80ca0231e507 Mon Sep 17 00:00:00 2001
|
|
|
788fbf |
From: Christian Heimes <cheimes@redhat.com>
|
|
|
788fbf |
Date: Mon, 14 Aug 2017 13:34:17 +0200
|
|
|
788fbf |
Subject: [PATCH 2/4] Disable unsupported tests
|
|
|
788fbf |
|
|
|
788fbf |
pytest 2.7 does not support context manager for deprecated_call().
|
|
|
788fbf |
---
|
|
|
788fbf |
tests/test_x509.py | 3 ++-
|
|
|
788fbf |
tests/test_x509_ext.py | 3 ++-
|
|
|
788fbf |
2 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
788fbf |
|
|
|
788fbf |
diff --git a/tests/test_x509.py b/tests/test_x509.py
|
|
|
788fbf |
index 966cba6f..fce617cc 100644
|
|
|
4c47a8 |
--- a/tests/test_x509.py
|
|
|
4c47a8 |
+++ b/tests/test_x509.py
|
|
|
788fbf |
@@ -527,7 +527,8 @@ class TestRSACertificate(object):
|
|
|
4c47a8 |
assert cert.serial == 2
|
|
|
4c47a8 |
assert cert.serial_number == 2
|
|
|
4c47a8 |
|
|
|
4c47a8 |
- def test_cert_serial_warning(self, backend):
|
|
|
4c47a8 |
+ def DISABLED_test_cert_serial_warning(self, backend):
|
|
|
4c47a8 |
+ # pytest 2.7 does not support context manager for deprecated_call()
|
|
|
4c47a8 |
cert = _load_cert(
|
|
|
4c47a8 |
os.path.join("x509", "PKITS_data", "certs", "GoodCACert.crt"),
|
|
|
4c47a8 |
x509.load_der_x509_certificate,
|
|
|
788fbf |
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
|
|
|
788fbf |
index 7104121d..00cf0a6f 100644
|
|
|
788fbf |
--- a/tests/test_x509_ext.py
|
|
|
788fbf |
+++ b/tests/test_x509_ext.py
|
|
|
788fbf |
@@ -3003,7 +3003,8 @@ class TestDistributionPoint(object):
|
|
|
788fbf |
with pytest.raises(ValueError):
|
|
|
788fbf |
x509.DistributionPoint("data", "notname", None, None)
|
|
|
788fbf |
|
|
|
788fbf |
- def test_relative_name_name_value_deprecated(self):
|
|
|
788fbf |
+ def DISABLED_test_relative_name_name_value_deprecated(self):
|
|
|
788fbf |
+ # pytest 2.7 does not support context manager for deprecated_call()
|
|
|
788fbf |
with pytest.deprecated_call():
|
|
|
788fbf |
x509.DistributionPoint(
|
|
|
788fbf |
None,
|
|
|
788fbf |
--
|
|
|
788fbf |
2.13.5
|
|
|
788fbf |
|