aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/test/tutils.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-01-19 14:00:50 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-01-19 20:27:29 +0100
commit72b753c60f7208ee536dc79bd20b3ba93563668b (patch)
tree1864d781b05ae2e564ced10659e9c425da00d209 /mitmproxy/test/tutils.py
parentea20bfb233a9cad44755417ec0a353bfab116fda (diff)
downloadmitmproxy-72b753c60f7208ee536dc79bd20b3ba93563668b.tar.gz
mitmproxy-72b753c60f7208ee536dc79bd20b3ba93563668b.tar.bz2
mitmproxy-72b753c60f7208ee536dc79bd20b3ba93563668b.zip
provide git information with --version
fixes #1848
Diffstat (limited to 'mitmproxy/test/tutils.py')
-rw-r--r--mitmproxy/test/tutils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/mitmproxy/test/tutils.py b/mitmproxy/test/tutils.py
index f5cec1b1..ae0ce2d8 100644
--- a/mitmproxy/test/tutils.py
+++ b/mitmproxy/test/tutils.py
@@ -20,14 +20,6 @@ def treader(bytes):
@contextmanager
-def chdir(dir):
- orig_dir = os.getcwd()
- os.chdir(dir)
- yield
- os.chdir(orig_dir)
-
-
-@contextmanager
def tmpdir(*args, **kwargs):
orig_workdir = os.getcwd()
temp_workdir = tempfile.mkdtemp(*args, **kwargs)