From 295d3fee5d5a58b41923776cec2408ed6662a2f8 Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Sun, 16 Aug 2020 01:10:10 -0600 Subject: [PATCH] tests: limit tests to py2/py3 --- tests/test_viv_features.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_viv_features.py b/tests/test_viv_features.py index ed466d45..e24687e9 100644 --- a/tests/test_viv_features.py +++ b/tests/test_viv_features.py @@ -5,6 +5,7 @@ # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and limitations under the License. +import sys from fixtures import * @@ -13,11 +14,13 @@ from fixtures import * "sample,scope,feature,expected", FEATURE_PRESENCE_TESTS, indirect=["sample", "scope"], ) def test_viv_features(sample, scope, feature, expected): - do_test_feature_presence(get_viv_extractor, sample, scope, feature, expected) + with xfail(sys.version_info >= (3, 0), reason="vivsect only works on py2"): + do_test_feature_presence(get_viv_extractor, sample, scope, feature, expected) @parametrize( "sample,scope,feature,expected", FEATURE_COUNT_TESTS, indirect=["sample", "scope"], ) def test_viv_feature_counts(sample, scope, feature, expected): - do_test_feature_count(get_viv_extractor, sample, scope, feature, expected) + with xfail(sys.version_info >= (3, 0), reason="vivsect only works on py2"): + do_test_feature_count(get_viv_extractor, sample, scope, feature, expected)