@@ -375,33 +375,6 @@ def apply(self, node, valid2: int = 1):
375375 assert options .get ('options' , None ) is None
376376
377377
378- def test_transformation_get_valid_options_no_sphinx ():
379- '''Test that the get_valid_options method behaves in the expected
380- way when sphinx isn't available.'''
381- # Test that importing stringify_annotations works without sphinx.
382- # Trick the import into thinking sphinx.util.typing is unavailable
383- with patch .dict (sys .modules , {'sphinx.util.typing' : None }):
384- # Unload the previously imported Transformation class
385- # pylint: disable=import-outside-toplevel
386- del sys .modules ['psyclone.psyGen' ]
387- from psyclone .psyGen import Transformation
388-
389- class TestTrans (Transformation ):
390- '''Utility transformation to test methods of the abstract
391- Transformation class.'''
392-
393- def apply (self , node , valid : bool = True , untyped = False ):
394- '''Apply method of TestTrans.'''
395-
396- options = TestTrans .get_valid_options ()
397- assert options ['valid' ].default
398- assert options ['valid' ].type is bool
399- assert options ['valid' ].typename == "<class 'bool'>"
400- assert options ['untyped' ].default is False
401- assert options ['untyped' ].type is None
402- assert options ['untyped' ].typename is None
403-
404-
405378def test_transformation_validate_options ():
406379 '''Test that the validate_options function behaves as expected'''
407380 class TestTrans (Transformation ):
0 commit comments