@@ -319,31 +319,28 @@ def test_constraining_abstract_specs_with_empty_intersection(self, lhs, rhs):
319319 rhs .constrain (lhs )
320320
321321 @pytest .mark .parametrize (
322- "lhs,rhs" ,
322+ "lhs,rhs,intersection_expected " ,
323323 [
324- ("mpich" , "mpich +foo" ),
325- ("mpich" , "mpich~foo" ),
326- ("mpich" , "mpich foo=1" ),
327- ("mpich" , "mpich++foo" ),
328- ("mpich" , "mpich~~foo" ),
329- ("mpich" , "mpich foo==1" ),
324+ ("mpich" , "mpich +foo" , True ),
325+ ("mpich" , "mpich~foo" , True ),
326+ ("mpich" , "mpich foo=1" , True ),
327+ ("mpich" , "mpich++foo" , True ),
328+ ("mpich" , "mpich~~foo" , True ),
329+ ("mpich" , "mpich foo==1" , True ),
330330 # Flags semantics is currently different from other variant
331- pytest .param ("mpich" , 'mpich cppflags="-O3"' , marks = pytest .mark .xfail ),
332- pytest .param (
333- "multivalue-variant foo=bar" , "multivalue-variant +foo" , marks = pytest .mark .xfail
334- ),
335- pytest .param (
336- "multivalue-variant foo=bar" , "multivalue-variant ~foo" , marks = pytest .mark .xfail
337- ),
331+ # ("mpich", 'mpich cppflags="-O3"', False),
332+ ("multivalue-variant foo=bar" , "multivalue-variant +foo" , False ),
333+ ("multivalue-variant foo=bar" , "multivalue-variant ~foo" , False ),
334+ ("multivalue-variant fee=bar" , "multivalue-variant fee=baz" , False ),
338335 ],
339336 )
340337 def test_concrete_specs_which_do_not_satisfy_abstract (
341- self , lhs , rhs , default_mock_concretization
338+ self , lhs , rhs , intersection_expected , default_mock_concretization
342339 ):
343340 lhs , rhs = default_mock_concretization (lhs ), Spec (rhs )
344341
345- assert lhs .intersects (rhs )
346- assert rhs .intersects (lhs )
342+ assert lhs .intersects (rhs ) is intersection_expected
343+ assert rhs .intersects (lhs ) is intersection_expected
347344 assert not lhs .satisfies (rhs )
348345 assert not rhs .satisfies (lhs )
349346
0 commit comments