diff options
author | stepshal <nessento@openmailbox.org> | 2016-08-20 04:37:32 +0700 |
---|---|---|
committer | stepshal <nessento@openmailbox.org> | 2016-08-20 04:37:32 +0700 |
commit | 08511f5fdfe04a8ea6e3ae73e086e8a29a0a5cd1 (patch) | |
tree | bf8c8b397156f7fc81b09b43fbbe7435280a75a2 /pkg_resources/tests/test_pkg_resources.py | |
parent | c296634d44de4a9715d09e4773b73b2d233fbbc4 (diff) | |
download | python-setuptools-git-08511f5fdfe04a8ea6e3ae73e086e8a29a0a5cd1.tar.gz |
Fix quantity of blank lines after code object, class of function definition.
Diffstat (limited to 'pkg_resources/tests/test_pkg_resources.py')
-rw-r--r-- | pkg_resources/tests/test_pkg_resources.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index 8b276ffc..361fe657 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -24,6 +24,7 @@ try: except NameError: unicode = str + def timestamp(dt): """ Return a timestamp for a local, naive datetime instance. @@ -34,13 +35,16 @@ def timestamp(dt): # Python 3.2 and earlier return time.mktime(dt.timetuple()) + class EggRemover(unicode): + def __call__(self): if self in sys.path: sys.path.remove(self) if os.path.exists(self): os.remove(self) + class TestZipProvider(object): finalizers = [] @@ -94,7 +98,9 @@ class TestZipProvider(object): assert f.read() == 'hello, world!' manager.cleanup_resources() + class TestResourceManager(object): + def test_get_cache_path(self): mgr = pkg_resources.ResourceManager() path = mgr.get_cache_path('foo') @@ -107,6 +113,7 @@ class TestIndependence: """ Tests to ensure that pkg_resources runs independently from setuptools. """ + def test_setuptools_not_imported(self): """ In a separate Python environment, import pkg_resources and assert @@ -122,7 +129,6 @@ class TestIndependence: subprocess.check_call(cmd) - class TestDeepVersionLookupDistutils(object): @pytest.fixture |