Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_win32timezone.py 774B

123456789101112131415161718192021222324252627
  1. # Test module for win32timezone
  2. import doctest
  3. import sys
  4. import unittest
  5. import win32timezone
  6. class Win32TimeZoneTest(unittest.TestCase):
  7. def testWin32TZ(self):
  8. # On 3.7 and later, the repr() for datetime objects changed to use kwargs - eg,
  9. # eg, `datetime.timedelta(0, 10800)` is now `datetime.timedelta(seconds=10800)`.
  10. # So we just skip the tests on 3.5 and 3.6
  11. if sys.version_info < (3, 7):
  12. from pywin32_testutil import TestSkipped
  13. raise TestSkipped(
  14. "The repr() for datetime objects makes this test fail in 3.5 and 3.6"
  15. )
  16. failed, total = doctest.testmod(win32timezone, verbose=False)
  17. self.assertFalse(failed)
  18. if __name__ == "__main__":
  19. unittest.main()