source: orange/Orange/testing/regression/tests_20/reference_variableReuse-load.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 682 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

Line 
1import orange
2import warnings
3
4warnings.simplefilter('ignore', orange.KernelWarning)
5
6MakeStatus = orange.Variable.MakeStatus
7
8base = orange.ExampleTable("reuse-load-1.tab")
9b2 = orange.ExampleTable("reuse-load-1.tab")
10print b2.attributeLoadStatus
11print " "+"  ".join(["N "[x==y] for x,y in zip(base.domain, b2.domain)])
12
13for status in range(5):
14    del base
15    del b2
16    del x
17    del y
18    base = orange.ExampleTable("reuse-load-1.tab")
19    b2 = orange.ExampleTable("reuse-load-2.tab", createNewOn=status)
20    print status
21    print base.attributeLoadStatus
22    print b2.attributeLoadStatus
23    print " "+"  ".join(["N "[x==y] for x,y in zip(base.domain, b2.domain)])
24    print
Note: See TracBrowser for help on using the repository browser.