Skip to content

Commit 991ee2b

Browse files
committed
sys.path why?
1 parent c91ffc1 commit 991ee2b

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

tests/test_video.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
from flaky import flaky
2626

27-
sys.path.append('.')
28-
2927
import telegram
3028
from tests.base import BaseTest, timeout
3129
from tests.bots import get_bot

tests/test_videonote.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see [http://www.gnu.org/licenses/].
1919
"""This module contains an object that represents Tests for Telegram VideoNote"""
20-
import numbers
20+
import os
2121
import sys
2222
import unittest
23-
import os
2423

2524
from flaky import flaky
2625

27-
from tests.bots import get_bot
28-
29-
sys.path.append('.')
30-
3126
import telegram
3227
from tests.base import BaseTest, timeout
28+
from tests.bots import get_bot
3329

3430

3531
class VideoNoteTest(BaseTest, unittest.TestCase):
@@ -175,5 +171,6 @@ def test_equality(self):
175171
self.assertNotEqual(a, e)
176172
self.assertNotEqual(hash(a), hash(e))
177173

174+
178175
if __name__ == '__main__':
179176
unittest.main()

tests/test_voice.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@
1818
# along with this program. If not, see [http://www.gnu.org/licenses/].
1919
"""This module contains an object that represents Tests for Telegram Voice"""
2020

21+
import os
2122
import sys
2223
import unittest
23-
import os
2424

2525
from flaky import flaky
2626

27-
from tests.bots import get_bot
28-
29-
sys.path.append('.')
30-
3127
import telegram
3228
from tests.base import BaseTest, timeout
29+
from tests.bots import get_bot
3330

3431

3532
class VoiceTest(BaseTest, unittest.TestCase):

0 commit comments

Comments
 (0)