From 124ea4e4a3763c2bdef56832759c59d736dc2e3b Mon Sep 17 00:00:00 2001 From: leandrotoledo Date: Wed, 15 Jul 2015 10:18:02 -0300 Subject: [PATCH] Python 2.6 unittest support --- telegram_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram_test.py b/telegram_test.py index d00c23f48..5d624be57 100644 --- a/telegram_test.py +++ b/telegram_test.py @@ -1,5 +1,6 @@ import unittest +from tests.test_bot import BotTest if __name__ == '__main__': - testsuite = unittest.TestLoader().discover('.') + testsuite = unittest.TestLoader().loadTestsFromTestCase(BotTest) unittest.TextTestRunner(verbosity=1).run(testsuite)