Skip to content

Commit 547c186

Browse files
committed
Remove concurrent.futures from requirements as it crashes pypy3
1 parent dfb3fe6 commit 547c186

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎requirements.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ requests>=2.7.0
44
six>=1.9.0
55
wheel>=0.24.0
66
mock>=2.0.0
7-
futures>=2.1.3

‎tests/test_util.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
# -*- coding: utf-8 -*-
22
import pytest
3-
# noinspection PyCompatibility
4-
import concurrent.futures
53
from telebot import util
64

75

8-
def test_async_returned_type():
9-
executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
10-
11-
@util.async(executor)
12-
def some_async_func():
13-
return 42
14-
15-
f = some_async_func()
16-
assert isinstance(f, concurrent.futures.Future)
17-
assert f.result() == 42
18-
19-
206
def test_is_string():
217
assert util.is_string('abc')
228
assert util.is_string(u'abc')

0 commit comments

Comments
 (0)