Skip to main content

py.test plugin for using the same _trial_temp working directory as trial

Project description

py.test plugin for using the same _trial_temp working directory as trial


Install the plugin with pip install pytest-trialtemp and it will be used automatically when tests are run.

To disable it for a particular run, use py.test -p no:trialtemp [...] to run your tests. See pytest’s documentation for further options.


I frequently use py.test to run Twisted tests written using trial. This works pretty well on its own, except trial’s temporary directory infrastructure assumes the working directory during test runs is ./_trial_temp or something similar.

In order to avoid littering my project root with annoying test-created temporary directories, I wrote this little plugin.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-trialtemp, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_trialtemp-1.0.1-py2-none-any.whl (3.7 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size pytest-trialtemp-1.0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page