Skip to content

Commit

Permalink
make test check python version
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Parente <[email protected]>
  • Loading branch information
nparent1 committed Dec 31, 2024
1 parent a6f6230 commit 70dc39f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dowhy/causal_identifier/identified_estimand.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ def __deepcopy__(self, memo):
estimand_type=copy.deepcopy(self.estimand_type),
estimands=copy.deepcopy(self.estimands),
backdoor_variables=copy.deepcopy(self.backdoor_variables),
general_adjustment_variables=copy.deepcopy(self.general_adjustment_variables),
instrumental_variables=copy.deepcopy(self.instrumental_variables),
frontdoor_variables=copy.deepcopy(self.frontdoor_variables),
mediator_variables=copy.deepcopy(self.mediator_variables),
default_backdoor_id=copy.deepcopy(self.default_backdoor_id),
default_adjustment_set_id=copy.deepcopy(self.default_adjustment_set_id),
identifier_method=copy.deepcopy(self.identifier_method),
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import pytest

from dowhy.causal_identifier import AutoIdentifier, GeneralizedAdjustment
Expand All @@ -11,6 +13,9 @@ class TestGeneralAdjustmentIdentification(object):
def test_identify_minimal_adjustment(
self, example_complete_adjustment_graph_solution: IdentificationTestGeneralCovariateAdjustmentGraphSolution
):
if sys.version_info < (3, 10): # generalized adjustment identification requires python >=3.10
return

graph = example_complete_adjustment_graph_solution.graph
expected_sets = example_complete_adjustment_graph_solution.minimal_adjustment_sets
adjustment_set_results = identify_generalized_adjustment_set(
Expand Down

0 comments on commit 70dc39f

Please sign in to comment.