Make tests compatible with pytest3
Tests can now be run under pytest 2.9 and 3.0
This commit is contained in:
parent
65087e313e
commit
e15ddba143
|
@ -1,9 +1,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if not os.environ.get('USE_ASYNCIO', False):
|
|
||||||
raise pytest.skip("Only for asyncio")
|
|
||||||
|
|
||||||
from unittest import TestCase, main
|
from unittest import TestCase, main
|
||||||
try:
|
try:
|
||||||
from unittest.mock import Mock, call
|
from unittest.mock import Mock, call
|
||||||
|
@ -15,6 +12,7 @@ from autobahn.asyncio.util import get_serializers
|
||||||
from autobahn.wamp import message
|
from autobahn.wamp import message
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(os.environ.get('USE_ASYNCIO', False), reason="Only for asyncio")
|
||||||
class Test(TestCase):
|
class Test(TestCase):
|
||||||
|
|
||||||
def test_sers(self):
|
def test_sers(self):
|
||||||
|
|
Loading…
Reference in New Issue