Commit 982b64a9 authored by Luke Macken's avatar Luke Macken

Use nose to skip the context manager test on <= py2.5

parent f45eb5ac
......@@ -18,6 +18,8 @@
import os
import sys
from nose.plugins.skip import SkipTest
import pyrasite
from pyrasite.tests.utils import run_program, generate_program, stop_program
......@@ -37,7 +39,7 @@ class TestIPCContextManager(object):
info = sys.version_info
major, minor = info[0], info[1]
if major <= 2 and minor <= 5:
self.skipTest("Context Managers not supported on Python<=2.5")
raise SkipTest("Context Managers not supported on Python<=2.5")
# Otherwise import a module which contains modern syntax.
# It really contains our test case, but we have pushed it out into
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment