Skip to content

Commit c54dab2

Browse files
[STYLE] Minor changes found in review (- WIP PR #263 -)
Changes in file tests/MulticastUDPClient.py: - added missing newline Changes in file tests/context.py: - minor tweaks
1 parent c6bb5f6 commit c54dab2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/MulticastUDPClient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
458459
def main():
459460
"""

tests/context.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)