Permalink
Browse files

Make tests compatible with pytest3

Tests can now be run under pytest 2.9 and 3.0
  • Loading branch information...
1 parent 65087e3 commit e15ddba1433139c1afeb025599bd97bc369ce6dd @Jenselme Jenselme committed Oct 1, 2016
Showing with 2 additions and 4 deletions.
  1. +1 −3 autobahn/asyncio/test/test_asyncio_rawsocket.py
  2. +1 −1 setup.cfg
@@ -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.wamp import message
+@pytest.mark.skipif(os.environ.get('USE_ASYNCIO', False), reason="Only for asyncio")
class Test(TestCase):
def test_sers(self):
View
@@ -1,4 +1,4 @@
-[pytest]
+[tool:pytest]
norecursedirs = autobahn/twisted/*
[bdist_wheel]

0 comments on commit e15ddba

Please sign in to comment.