add __main__ for stand-alone test runs

svn: r23036
This commit is contained in:
Vassilii Khachaturov 2013-09-05 08:25:30 +00:00
parent 2637ab109a
commit 109fabf5d4

View File

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