From 3acc3eeabddc6673502508f00fe07d8fb302f00b Mon Sep 17 00:00:00 2001 From: Ana Maria Martinez Gomez Date: Tue, 9 Feb 2021 20:04:30 +0100 Subject: [PATCH] Enable tests for vivisect in Python3 Now we support vivisect as backend in Python3. We should test it. --- tests/fixtures.py | 1 + tests/test_viv_features.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index 4261408b..3d047d52 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -522,6 +522,7 @@ def do_test_feature_count(get_extractor, sample, scope, feature, expected): def get_extractor(path): if sys.version_info >= (3, 0): extractor = get_smda_extractor(path) + extractor = get_viv_extractor(path) else: extractor = get_viv_extractor(path) diff --git a/tests/test_viv_features.py b/tests/test_viv_features.py index 0922d758..3206e8cf 100644 --- a/tests/test_viv_features.py +++ b/tests/test_viv_features.py @@ -16,8 +16,7 @@ from fixtures import * indirect=["sample", "scope"], ) def test_viv_features(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) + do_test_feature_presence(get_viv_extractor, sample, scope, feature, expected) @parametrize( @@ -26,5 +25,4 @@ def test_viv_features(sample, scope, feature, expected): indirect=["sample", "scope"], ) def test_viv_feature_counts(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) + do_test_feature_count(get_viv_extractor, sample, scope, feature, expected)