Ignore:
Timestamp:
13 Sep 2011, 10:37:02 (13 years ago)
Author:
uli
Message:

Remove manual logfile removal/detection. This should be done by
surrounding test cases automatically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_logger.py

    r6581 r6748  
    3232    def setUp(self):
    3333        super(LoggersTests, self).setUp()
    34         self.old_loggers = get_all_loggers()
    3534        # Setup a sample site for each test
    3635        app = University()
     
    4746    def tearDown(self):
    4847        super(LoggersTests, self).tearDown()
    49         remove_new_loggers(self.old_loggers)
    5048        shutil.rmtree(self.workdir)
    5149        shutil.rmtree(self.dc_root)
     
    218216        self.component = self.app['mycomponent']
    219217        setSite(self.app)
    220         self.old_loggers = get_all_loggers()
    221218        return
    222219
    223220    def tearDown(self):
    224221        super(LoggersFunctionalTests, self).tearDown()
    225         remove_new_loggers(self.old_loggers)
    226222        shutil.rmtree(self.workdir)
    227223        shutil.rmtree(self.dc_root)
     
    394390        # When a datacenter storage (its path) changes, we have to
    395391        # move the logfiles as well.
    396         #return
    397392        filename1 = self.component.logger.handlers[0].baseFilename
    398393        self.dc_root_new = tempfile.mkdtemp()
Note: See TracChangeset for help on using the changeset viewer.