Changeset 10628:fbb6b588c76d in orange


Ignore:
Timestamp:
03/23/12 18:48:33 (2 years ago)
Author:
mstajdohar
Branch:
default
rebase_source:
ba585c1fcdba3243b33dc6cee9222fe26fae6351
Message:

Warnings are no longer suppressed.

File:
1 edited

Legend:

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

    r10626 r10628  
    44import os as t__os 
    55 
     6from Orange.core import AttributeWarning 
     7 
    68#ignore warnings 
    79import warnings as t__warnings 
    8 t__warnings.simplefilter("ignore", "AttributeWarning") 
     10t__warnings.filterwarnings("ignore", "", AttributeWarning) 
    911 
    1012#from numpy import seterr 
     
    8587# when testing backward compatibility support suppress deprecation warnings 
    8688if "tests_20" in t__outputsdir: 
    87     t__warnings.simplefilter("ignore", "DeprecationWarning") 
     89    t__warnings.filterwarnings("ignore", category=DeprecationWarning) 
    8890 
    8991t__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.