Ignore:
Timestamp:
12/28/08 15:16:50 (5 years ago)
Author:
xi
Message:

Refactored the test suite; updated include and library paths in setup.cfg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/test_all.py

    r291 r322  
    11 
    2 import unittest 
     2import sys, yaml, test_appliance 
    33 
    4 def main(): 
    5     import yaml 
    6     names = ['test_yaml'] 
    7     if yaml.__libyaml__: 
    8         names.append('test_yaml_ext') 
    9     suite = unittest.defaultTestLoader.loadTestsFromNames(names) 
    10     runner = unittest.TextTestRunner() 
    11     runner.run(suite) 
     4def main(args=None): 
     5    collections = [] 
     6    import test_yaml 
     7    collections.append(test_yaml) 
     8    if yaml.__with_libyaml__: 
     9        import test_yaml_ext 
     10        collections.append(test_yaml_ext) 
     11    test_appliance.run(collections, args) 
    1212 
    1313if __name__ == '__main__': 
Note: See TracChangeset for help on using the changeset viewer.