Ignore:
Timestamp:
03/23/12 15:45:01 (2 years ago)
Author:
mstajdohar
Branch:
default
rebase_source:
5db8b935a3cb5f8ae8abadbdfdff78900419a86c
Message:

Fail test on warnings except for DeprecationWarning on old tests and AttributeWarning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/regression/xtest_one.py

    r10291 r10626  
    66#ignore warnings 
    77import warnings as t__warnings 
    8 t__warnings.simplefilter("ignore") 
     8t__warnings.simplefilter("ignore", "AttributeWarning") 
     9 
     10#from numpy import seterr 
     11#seterr(all='raise') 
    912 
    1013NO_RANDOMNESS = 1 # prevent random parts of scripts to run 
     
    7982t__iterations = int(t__sys.argv[2]) 
    8083t__outputsdir = t__sys.argv[3] 
     84 
     85# when testing backward compatibility support suppress deprecation warnings 
     86if "tests_20" in t__outputsdir: 
     87    t__warnings.simplefilter("ignore", "DeprecationWarning") 
    8188 
    8289t__timedoutname, t__crashname, t__errorname, t__newname, t__changedname, t__random1name, t__random2name = ["%s/%s.%s.%s.%s.txt" % (t__outputsdir, t__name, t__sys.platform, t__sys.version[:3], t) for t in ["timedout", "crash", "error", "new", "changed", "random1", "random2"]] 
Note: See TracChangeset for help on using the changeset viewer.