Skip to content

Commit

Permalink
expectedFailure_fast decorator added
Browse files Browse the repository at this point in the history
  • Loading branch information
ReyhaneAskari committed Jun 5, 2017
1 parent ca96223 commit dd15fb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions theano/gof/utils.py
Expand Up @@ -2,6 +2,7 @@
import linecache
import sys
import traceback
import unittest

import numpy as np
from six import iteritems, integer_types, string_types, with_metaclass
Expand All @@ -11,6 +12,13 @@
from theano.compat import PY3


def expectedFailure_fast():
"""a Decorator to handle the test cases that are failing when
THEANO_FALGS = cycle_detection='fast'.
"""
return unittest.expectedFailure if config.cycle_detection == 'fast' else lambda x: x


def simple_extract_stack(f=None, limit=None, skips=[]):
"""This is traceback.extract_stack from python 2.7 with this change:
Expand Down

0 comments on commit dd15fb3

Please sign in to comment.