# HG changeset patch # User Jeff Hammel # Date 1330659362 28800 # Node ID a2ba66be2e311cb1821b697004fb61c4b27888ef # Parent 83327bc715be5e1bfcbf15ef8e0f70b5fa1cd09e tests mysteriously fail now diff -r 83327bc715be -r a2ba66be2e31 tests/test_ttw.txt --- a/tests/test_ttw.txt Thu Mar 01 18:31:52 2012 -0800 +++ b/tests/test_ttw.txt Thu Mar 01 19:36:02 2012 -0800 @@ -6,6 +6,9 @@ The obligatory imports:: >>> import os + >>> import shutil + >>> import subprocess + >>> import tempfile >>> import urllib2 >>> from simpypi.factory import factory @@ -54,6 +57,12 @@ >>> os.listdir(os.path.join(directory, 'HelloWorld')) ['HelloWorld-0.0.tar.gz'] +Make a virtualenv to install it in:: + + >>> tmpdir = tempfile.mkdtemp() + >>> venv = create_virtualenv(tmpdir) + >>> shutil.rmtree(tmpdir) + Shut down the server:: >>> server.stop()