Make tests compatible with pytest3

Tests can now be run under pytest 2.9 and 3.0
This commit is contained in:
Julien Enselme 2016-10-01 19:47:03 +02:00
parent 65087e313e
commit e15ddba143
2 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,6 @@
import pytest
import os
if not os.environ.get('USE_ASYNCIO', False):
raise pytest.skip("Only for asyncio")
from unittest import TestCase, main
try:
from unittest.mock import Mock, call
@ -15,6 +12,7 @@ from autobahn.asyncio.util import get_serializers
from autobahn.wamp import message
@pytest.mark.skipif(os.environ.get('USE_ASYNCIO', False), reason="Only for asyncio")
class Test(TestCase):
def test_sers(self):

View File

@ -1,4 +1,4 @@
[pytest]
[tool:pytest]
norecursedirs = autobahn/twisted/*
[bdist_wheel]