add __main__ for stand-alone test runs

svn: r23038
This commit is contained in:
Vassilii Khachaturov 2013-09-05 08:32:00 +00:00
parent 2a6e1a2f1e
commit 3f32fbcab0

View File

@ -173,3 +173,6 @@ class DateHandlerTest(unittest.TestCase):
with self.assertRaises(DateError):
d.set(Date.QUAL_NONE, Date.MOD_SPAN, Date.CAL_GREGORIAN,
(4, 7, 1789, False, 5, 88, 1876, False), "Text comment")
if __name__ == "__main__":
unittest.main()