mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
unittest2 for py2
This commit is contained in:
parent
7b13adb34b
commit
4a4dbcdbf8
2 changed files with 10 additions and 2 deletions
|
@ -20,7 +20,11 @@
|
|||
"""This module contains a object that represents Tests for Telegram InlineKeyboardButton"""
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
if sys.version_info[0:2] == (2, 6):
|
||||
import unittest2 as unittest
|
||||
else:
|
||||
import unittest
|
||||
|
||||
sys.path.append('.')
|
||||
|
||||
|
|
|
@ -21,7 +21,11 @@
|
|||
KeyboardButton"""
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
if sys.version_info[0:2] == (2, 6):
|
||||
import unittest2 as unittest
|
||||
else:
|
||||
import unittest
|
||||
|
||||
sys.path.append('.')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue