Changeset 114:d1a96fc62d26


Ignore:
Timestamp:
Sep 2, 2013, 1:00:28 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
amend_source:
ebd31ee50a11101c1f6e3c354e9851a141b0eb49
Message:

Fallback to pytest's skip exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/tests/test_yamlish.py

    r112 r114  
    1 from unittest import TestCase, SkipTest
     1from unittest import TestCase
     2
     3from nagslang.yamlish import load_s, dump_s
    24
    35try:
     
    68    yaml = None  # pyflakes:ignore
    79
    8 from nagslang.yamlish import load_s, dump_s
     10try:
     11    from unittest import SkipTest
     12except ImportError:
     13    from pytest import skip
     14    SkipTest = skip.Exception  # pyflakes:ignore
    915
    1016
Note: See TracChangeset for help on using the changeset viewer.