Skip to content

Commit d37b6d6

Browse files
committed
make sure to stop Updater after the test_createBot is over
1 parent e479c7f commit d37b6d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_updater.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ def test_idle(self):
639639
self.assertFalse(self.updater.running)
640640

641641
def test_createBot(self):
642-
updater = Updater('123:abcd')
643-
self.assertIsNotNone(updater.bot)
642+
self.updater = Updater('123:abcd')
643+
self.assertIsNotNone(self.updater.bot)
644644

645645
def test_mutualExclusiveTokenBot(self):
646646
bot = Bot('123:zyxw')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy