From c8c54c62ab5c443613adfb5852babf9ef0192662 Mon Sep 17 00:00:00 2001 From: Raoul Schram Date: Tue, 21 Jan 2025 12:05:12 +0100 Subject: [PATCH] Update testing to skip testing empty series Depends on metasyn update as well. --- tests/test_provider.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_provider.py b/tests/test_provider.py index 0f3d3f8..7f36619 100644 --- a/tests/test_provider.py +++ b/tests/test_provider.py @@ -15,4 +15,7 @@ def test_disclosure_provider(): def test_dist_validation(distribution, privacy_kwargs): np.random.seed(45) privacy = DisclosurePrivacy(**privacy_kwargs) - check_distribution(distribution, privacy=privacy, provenance="metasyn-disclosure") + try: + check_distribution(distribution, privacy=privacy, provenance="metasyn-disclosure", test_empty=False) + except TypeError: + check_distribution(distribution, privacy=privacy, provenance="metasyn-disclosure")