Skip to content

Commit 2283cc6

Browse files
author
Efraimov Oren
committed
fir(test/__init__.py): Ignoring DeprecationWarning from "cassandra.io.asyncioreactor"
The tests can run from different versions of Python. These messages are irrelevant because they are relevant only for Python3.8.
1 parent 5fdb006 commit 2283cc6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import warnings
1415

1516
try:
1617
import unittest2 as unittest
@@ -23,6 +24,13 @@
2324
import os
2425
from concurrent.futures import ThreadPoolExecutor
2526

27+
warnings.filterwarnings(
28+
action="ignore",
29+
category=DeprecationWarning,
30+
module="cassandra.io.asyncioreactor",
31+
)
32+
33+
2634
log = logging.getLogger()
2735
log.setLevel('DEBUG')
2836
# if nose didn't already attach a log handler, add one here

0 commit comments

Comments
 (0)