Changeset 114:d1a96fc62d26 for nagslang


Ignore:
Timestamp:
09/02/13 13:00:28 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Amend:
65626433316565353061313131303163316636653363333534653938353161313431623065623439
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.