summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_database.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-30 09:07:54 (GMT)
committerTarek Ziade <tarek@ziade.org>2011-05-30 09:07:54 (GMT)
commit43f289ad8882a743d03b92a430f7ab7616e96673 (patch)
tree04b05a5b1103e232e4ad0eba69cdb267550ae7ff /Lib/packaging/tests/test_database.py
parenta17d8883fd6b001bef57cc1f7cfdb0504446d9db (diff)
downloadcpython-43f289ad8882a743d03b92a430f7ab7616e96673.zip
cpython-43f289ad8882a743d03b92a430f7ab7616e96673.tar.gz
cpython-43f289ad8882a743d03b92a430f7ab7616e96673.tar.bz2
cleanup packaging.database
Diffstat (limited to 'Lib/packaging/tests/test_database.py')
-rw-r--r--Lib/packaging/tests/test_database.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/packaging/tests/test_database.py b/Lib/packaging/tests/test_database.py
index e0c16de..e965c60 100644
--- a/Lib/packaging/tests/test_database.py
+++ b/Lib/packaging/tests/test_database.py
@@ -1,23 +1,20 @@
import os
import io
import csv
-import imp
import sys
import shutil
-import zipfile
import tempfile
from os.path import relpath # separate import for backport concerns
from hashlib import md5
from textwrap import dedent
-from packaging.tests import unittest
from packaging.tests.test_util import GlobTestCaseBase
from packaging.tests.support import requires_zlib
from packaging.config import get_resources_dests
from packaging.errors import PackagingError
from packaging.metadata import Metadata
-from packaging.tests import unittest, run_unittest, support, TESTFN
+from packaging.tests import unittest, support
from packaging.database import (
Distribution, EggInfoDistribution, get_distribution, get_distributions,
provides_distribution, obsoletes_distribution, get_file_users,
@@ -582,7 +579,8 @@ class DataFilesTestCase(GlobTestCaseBase):
('', os.path.join('developer-docs', '**', '*.txt'), '{doc}'),
('', 'README', '{doc}'),
('mailman/etc/', '*', '{config}'),
- ('mailman/foo/', os.path.join('**', 'bar', '*.cfg'), '{config}/baz'),
+ ('mailman/foo/', os.path.join('**', 'bar', '*.cfg'),
+ '{config}/baz'),
('mailman/foo/', os.path.join('**', '*.cfg'), '{config}/hmm'),
('', 'some-new-semantic.sns', '{funky-crazy-category}'),
]