diff options
| author | Martin Pitt <martin.pitt@canonical.com> | 2012-11-20 09:44:23 +0100 |
|---|---|---|
| committer | Martin Pitt <martin.pitt@canonical.com> | 2012-11-20 09:44:23 +0100 |
| commit | 7fd512f22177d4745843d8d282cbb8a964915a21 (patch) | |
| tree | d743555c6ba69efcc59e0c7439295f205c358d76 /tests/test_tagfile.py | |
| parent | 62364cec6ad24aa75590bbefd7ce3ecf13ff2088 (diff) | |
| download | python-apt-7fd512f22177d4745843d8d282cbb8a964915a21.tar.gz | |
tests/*.py: Do not prepend None to sys.path, Python 3.3 redeems that with
an unintelligible crash.
Diffstat (limited to 'tests/test_tagfile.py')
| -rw-r--r-- | tests/test_tagfile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_tagfile.py b/tests/test_tagfile.py index 33197e6a..f26f851b 100644 --- a/tests/test_tagfile.py +++ b/tests/test_tagfile.py @@ -21,7 +21,9 @@ import tempfile import unittest from test_all import get_library_dir -sys.path.insert(0, get_library_dir()) +libdir = get_library_dir() +if libdir: + sys.path.insert(0, libdir) import apt_pkg |
