1- from astropy .tests .runner import TestRunner , TestRunnerBase , keyword
1+ from astropy .tests .runner import TestRunner as T_Runner
2+ from astropy .tests .runner import TestRunnerBase as T_RunnerBase
3+ from astropy .tests .runner import keyword
24from astropy .tests .helper import pytest
35
46
57def test_disable_kwarg ():
6- class no_remote_data (TestRunner ):
8+ class no_remote_data (T_Runner ):
79 @keyword ()
810 def remote_data (self , remote_data , kwargs ):
911 return NotImplemented
@@ -14,13 +16,13 @@ def remote_data(self, remote_data, kwargs):
1416
1517
1618def test_wrong_kwarg ():
17- r = TestRunner ('.' )
19+ r = T_Runner ('.' )
1820 with pytest .raises (TypeError ):
1921 r .run_tests (spam = 'eggs' )
2022
2123
2224def test_invalid_kwarg ():
23- class bad_return (TestRunnerBase ):
25+ class bad_return (T_RunnerBase ):
2426 @keyword ()
2527 def remote_data (self , remote_data , kwargs ):
2628 return 'bob'
@@ -31,7 +33,7 @@ def remote_data(self, remote_data, kwargs):
3133
3234
3335def test_new_kwarg ():
34- class Spam (TestRunnerBase ):
36+ class Spam (T_RunnerBase ):
3537 @keyword ()
3638 def spam (self , spam , kwargs ):
3739 return [spam ]
@@ -44,7 +46,7 @@ def spam(self, spam, kwargs):
4446
4547
4648def test_priority ():
47- class Spam (TestRunnerBase ):
49+ class Spam (T_RunnerBase ):
4850 @keyword ()
4951 def spam (self , spam , kwargs ):
5052 return [spam ]
@@ -61,7 +63,7 @@ def eggs(self, eggs, kwargs):
6163
6264
6365def test_docs ():
64- class Spam (TestRunnerBase ):
66+ class Spam (T_RunnerBase ):
6567 @keyword ()
6668 def spam (self , spam , kwargs ):
6769 """
0 commit comments