File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ def handle(self):
454454 print (data )
455455 sock .sendto (data .upper (), self .client_address )
456456
457+
457458# skipcq: TCV-002
458459def main ():
459460 """
Original file line number Diff line number Diff line change @@ -931,6 +931,8 @@ class BasicUsageTestSuite(unittest.TestCase):
931931
932932 __name__ = """tests.context.BasicUsageTestSuite"""
933933
934+ NO_PYTHON_ERROR = """No python cmd to test with!""" # skipcq: TCV-002
935+
934936 @classmethod
935937 def setUpClass (cls ):
936938 """Overrides unittest.TestCase.setUpClass(cls) to set up thepython test fixture."""
@@ -955,7 +957,7 @@ def setUp(self):
955957 Defaults is to skip test if class is missing thepython test fixture.
956958 """
957959 if not self ._thepython :
958- self .skipTest (str ( """No python cmd to test with!""" ) ) # skipcq: TCV-002
960+ self .skipTest (self . NO_PYTHON_ERROR ) # skipcq: TCV-002
959961 self ._the_test_port = self ._always_generate_random_port_WHEN_called ()
960962
961963 def _should_get_package_version_WHEN_valid (self ):
@@ -999,7 +1001,7 @@ def test_absolute_truth_and_meaning(self):
9991001 def test_finds_python_WHEN_testing (self ):
10001002 """Test case 1: Class Test-Fixture Meta Test."""
10011003 if (self ._thepython is not None ) and (len (self ._thepython ) <= 0 ):
1002- self .fail (str ( """No python cmd to test with!""" ) ) # skipcq: TCV-002
1004+ self .fail (self . NO_PYTHON_ERROR ) # skipcq: TCV-002
10031005 self .test_absolute_truth_and_meaning ()
10041006
10051007 def tearDown (self ):
You can’t perform that action at this time.
0 commit comments