# HG changeset patch # User Ludovic Chabant # Date 1464897668 25200 # Node ID c6035785dbfcb8168444a4112b1eb7be5af100a5 # Parent b91fe30ae7aa5d7cbdd044dcb3d3037c5c485531 tests: the `PageBaker` now needs to be shutdown. Otherwise it keeps the process alive because of its writer thread. diff -r b91fe30ae7aa -r c6035785dbfc tests/test_baking_baker.py --- a/tests/test_baking_baker.py Thu Jun 02 13:00:36 2016 -0700 +++ b/tests/test_baking_baker.py Thu Jun 02 13:01:08 2016 -0700 @@ -45,10 +45,13 @@ for site_root in ['/', '/whatever/', '/~johndoe/']: app.config.set('site/root', urllib.parse.quote(site_root)) baker = PageBaker(app, '/destination') - path = baker.getOutputPath(urllib.parse.quote(site_root) + uri) - expected = os.path.normpath( - os.path.join('/destination', expected)) - assert expected == path + try: + path = baker.getOutputPath(urllib.parse.quote(site_root) + uri) + expected = os.path.normpath( + os.path.join('/destination', expected)) + assert expected == path + finally: + baker.shutdown() def test_removed():