]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove deprecated use of 'setup.py test' (#1275)
authorJon Dufresne <jon.dufresne@gmail.com>
Fri, 8 May 2020 13:23:50 +0000 (06:23 -0700)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 13:23:50 +0000 (06:23 -0700)
Since setuptools v41.5.0 (27 Oct 2019), the 'test' command is formally
deprecated and should not be used. Now use unittest as the test entry
point.

.github/ISSUE_TEMPLATE/bug_report.md
.github/workflows/test.yml
.travis.yml
CONTRIBUTING.md
setup.py
tests/__init__.py [new file with mode: 0644]

index e2e468aa9aebbc15b8f6f6604c128dc2400a8853..e652f17c94b3b9bfe9bcd23dd1b4f7d4e45b1cdb 100644 (file)
@@ -29,7 +29,7 @@ assignees: ""
    - create a new virtualenv (make sure it's the same Python version);
    - clone this repository;
    - run `pip install -e .`;
-   - make sure it's sane by running `python setup.py test`; and
+   - make sure it's sane by running `python -m unittest`; and
    - run `black` like you did last time.
 
 **Additional context** Add any other context about the problem here.
index de734da0eabd3a932868d4b98e4a9710617b4b30..c2671daa15364d53ed9698c5034582b745d67fad 100644 (file)
@@ -27,4 +27,4 @@ jobs:
 
       - name: Unit tests
         run: |
-          coverage run tests/test_black.py
+          coverage run -m unittest
index ec2417258560b4b01af626b540caf9f0ca2ae3aa..19b60a490d34c12b530d4326421172c980aa9175 100644 (file)
@@ -4,7 +4,7 @@ cache:
   directories:
     - $HOME/.cache/pre-commit
 env:
-  - TEST_CMD="coverage run tests/test_black.py"
+  - TEST_CMD="coverage run -m unittest"
 install:
   - pip install coverage coveralls pre-commit
   - pip install -e '.[d]'
index d6202758d2173531e456fa842342713cf57b5fb5..91e5320e2830321f347c6f56200336a1b3a9ce6a 100644 (file)
@@ -37,7 +37,7 @@ from the cloned _Black_ repo. It will do the correct thing.
 Before submitting pull requests, run tests with:
 
 ```
-$ python setup.py test
+$ python -m unittest
 ```
 
 ## Hygiene
index fb3b91ff9fd17657e16340a31d145a82583c57c3..6192131855071c612ea0aa94ba02a9729578bf90 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -78,7 +78,6 @@ setup(
         "mypy_extensions>=0.4.3",
     ],
     extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
-    test_suite="tests.test_black",
     classifiers=[
         "Development Status :: 4 - Beta",
         "Environment :: Console",
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644 (file)
index 0000000..e69de29