summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-07-31 12:01:43 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-07-31 12:01:43 +0200
commit19fdcab7acc03ceb6aaf57f7ccdd754a41aa7b6e (patch)
tree71306cb8396e4e5959600ada70cb149df8b1a8f6 /tests
parentb4d0f3a1c38d916c2abda67549a454467a05fb1f (diff)
downloadpython-apt-19fdcab7acc03ceb6aaf57f7ccdd754a41aa7b6e.tar.gz
* python/apt_instmodule.cc:
- do not change working dir in debExtractArchive() (LP: #184093)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_extract_archive.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_extract_archive.py b/tests/test_extract_archive.py
new file mode 100644
index 00000000..ce202b06
--- /dev/null
+++ b/tests/test_extract_archive.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import apt
+import apt_inst
+import os
+import sys
+
+print os.getcwd()
+apt_inst.debExtractArchive(open(sys.argv[1]), "/tmp/")
+print os.getcwd()