diff --git a/sacred/run.py b/sacred/run.py index c0da3bcb..443b3a70 100644 --- a/sacred/run.py +++ b/sacred/run.py @@ -177,6 +177,8 @@ def _stop_time(self): return elapsed_time def _emit_completed(self, result): + if result is not None: + self.logger.info('Result: {}'.format(result)) elapsed_time = self._stop_time() self.logger.info('Completed after %s' % elapsed_time) for observer in self._observers: diff --git a/tests/dependency_example.py b/tests/dependency_example.py index 8f4608a9..1cc807cd 100644 --- a/tests/dependency_example.py +++ b/tests/dependency_example.py @@ -15,6 +15,7 @@ # import tests.foo.bar -def some_func(): pass +def some_func(): + pass ignore_this = 17 diff --git a/tests/test_config/test_signature.py b/tests/test_config/test_signature.py index 8610ef19..e7b1868f 100644 --- a/tests/test_config/test_signature.py +++ b/tests/test_config/test_signature.py @@ -74,7 +74,7 @@ def onlykwrgs(**kwargs): kwarg_list = [{}, {}, {'a': 1, 'b': 'fo', 'c': 9}, {'c': 3}, {}, {}, {}, {}] -class SomeClass: +class SomeClass(object): def bla(self, a, b, c): return a, b, c