Fix error in test_startup with Python 3