Kaydet (Commit) 6ecf76ea authored tarafından R. David Murray's avatar R. David Murray

Use skipIf instead of a return when attribute doesn't exist.

üst 4d55bf9f
......@@ -126,9 +126,9 @@ class TimeTestCase(unittest.TestCase):
def test_asctime_bounding_check(self):
self._bounds_checking(time.asctime)
@unittest.skipIf(not hasattr(time, "tzset"),
"time module has no attribute tzset")
def test_tzset(self):
if not hasattr(time, "tzset"):
return # Can't test this; don't want the test suite to fail
from os import environ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment