Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/test_refactoring.py

    r9862 r9910  
    33 
    44""" 
    5 import sys, os 
    65import unittest 
    76 
     
    2625     
    2726def rhasattr(obj, name): 
     27    """ Recursive hasattr. 
     28    """ 
    2829    while "." in name: 
    2930        first, name = name.split(".", 1) 
     
    3536 
    3637def rgetattr(obj, name): 
     38    """ Recursive getattr  
     39    """ 
    3740    while "." in name: 
    3841        first, name = name.split(".", 1) 
     
    4548 
    4649def import_package(name): 
     50    """ Import a package and return it. 
     51    """ 
    4752    mod = __import__(name) 
    4853    if "." in name: 
     
    6671             
    6772             
    68             self.assertTrue(rhasattr(old_mod, old_name), "{0} is missing".format(old)) 
    69             self.assertTrue(rhasattr(new_mod, new_name), "{0} is missing".format(new)) 
     73            self.assertTrue(rhasattr(old_mod, old_name),  
     74                            "{0} is missing".format(old)) 
     75            self.assertTrue(rhasattr(new_mod, new_name), 
     76                            "{0} is missing".format(new)) 
    7077             
    7178    def test_import_mapping(self): 
     
    7683     
    7784             
    78              
    7985if __name__ == "__main__": 
    8086    unittest.main() 
  • install-scripts/createSnapshot.btm

    r9730 r9909  
    1212rem # update source(s) to revision HEAD 
    1313cdd %TMPDIR 
    14  
    15 hg pull --update 
    1614 
    1715rem # build core 
  • install-scripts/updateAndCall.btm

    r9730 r9909  
    99REM hg clone https://bitbucket.org/biolab/orange snapshot 
    1010cdd snapshot 
    11 hg pull --update 
     11hg pull 
     12hg update 
     13 
    1214 
    1315REM hg clone https://bitbucket.org/biolab/orange-addon-bioinformatics Bioinformatics 
    1416cdd Bioinformatics 
    15 hg pull --update 
     17hg pull 
     18hg update 
    1619 
    1720cdd  e:\orange\scripts\snapshot 
     
    1922REM hg clone https://bitbucket.org/biolab/orange-addon-text Text 
    2023cdd Text 
    21 hg pull --update 
     24hg pull  
     25hg update 
    2226 
    2327cdd e:\orange\scripts 
    2428 
    25 copy /r snapshot\install-scripts\* . 
     29copy /q snapshot\install-scripts\* . 
    2630 
    27 #svn update -N 
    28 #svn export http://orange.biolab.si/svn/orange/trunk/orange/doc/LICENSES license.txt 
    29 #svn 
    30   
    3131call callCreateSnapshot.btm 
    3232shutdown -s 
Note: See TracChangeset for help on using the changeset viewer.