Commit ac958ab6 authored by Barry Warsaw's avatar Barry Warsaw

Fix a couple of intermittent test problems.

parent 5a3ffbda
......@@ -27,6 +27,7 @@ be set in the configuration file.
... use_https: yes
... api_version: 4.2
... """)
>>> cleanups.append((config.pop, 'helpers'))
>>> print path_to('system')
https://geddy:2112/4.2/system
......
......@@ -46,6 +46,7 @@ import mock
import time
import uuid
import errno
import shutil
import signal
import socket
import logging
......@@ -482,6 +483,7 @@ def reset_the_world():
for dirpath, dirnames, filenames in os.walk(config.MESSAGES_DIR):
for filename in filenames:
os.remove(os.path.join(dirpath, filename))
shutil.rmtree(dirpath)
# Reset the global style manager.
getUtility(IStyleManager).populate()
# Remove all dynamic header-match rules.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment