diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-03 10:17:48 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-03 10:17:48 -0500 |
| commit | a9a38182f64da197bd52efdf3c63d68448c80942 (patch) | |
| tree | 3fdd6fafd1fe00d43f9d6d11ae4bfe879c9f641c /pkg_resources/tests/test_resources.py | |
| parent | 3ff6789b02e2543cb352c8c9f89ceda5c61ca74e (diff) | |
| download | python-setuptools-git-a9a38182f64da197bd52efdf3c63d68448c80942.tar.gz | |
Use consistent numbering for clarity.
Diffstat (limited to 'pkg_resources/tests/test_resources.py')
| -rw-r--r-- | pkg_resources/tests/test_resources.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 553eecb4..5b3ba546 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -698,14 +698,14 @@ class TestNamespaces: ns_str = "__import__('pkg_resources').declare_namespace(__name__)\n" vers_str = "__version__ = %r" - for idx, site in enumerate(site_dirs): - if idx > 0: + for number, site in enumerate(site_dirs, 1): + if number > 1: sys.path.append(str(site)) nspkg = site / 'nspkg' subpkg = nspkg / 'subpkg' subpkg.ensure_dir() (nspkg / '__init__.py').write_text(ns_str, encoding='utf-8') - (subpkg / '__init__.py').write_text(vers_str % (idx + 1), encoding='utf-8') + (subpkg / '__init__.py').write_text(vers_str % number, encoding='utf-8') import nspkg.subpkg import nspkg |
