[ 
https://issues.apache.org/jira/browse/KAFKA-8337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16835682#comment-16835682
 ] 

ASF GitHub Bot commented on KAFKA-8337:
---------------------------------------

sekikn commented on pull request #6701: KAFKA-8337: Fix tests/setup.cfg to work 
with pytest 4.x
URL: https://github.com/apache/kafka/pull/6701
 
 
   This PR replaces [pytest] section in tests/setup.cfg with [tool:pytest] so 
that the unit tests for the system tests work with pytest 4.x.
   I ran `python setup.py test` and confirmed it succeeded.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Fix tests/setup.cfg to work with pytest 4.x
> -------------------------------------------
>
>                 Key: KAFKA-8337
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8337
>             Project: Kafka
>          Issue Type: Bug
>          Components: system tests, unit tests
>            Reporter: Kengo Seki
>            Priority: Minor
>
> In accordance with tests/README.md, I ran {{`python setup.py test`}} in the 
> {{tests}} directory to execute unit tests for the system tests, but got the 
> following error:
> {code}
> $ python setup.py test
> running test
> (snip)
> Using /home/sekikn/repo/kafka/tests/.eggs/docutils-0.14-py2.7.egg
> Searching for pytest
> Best match: pytest 4.4.1
> Processing pytest-4.4.1-py2.7.egg
> (snip)
> builtins.Failed: [pytest] section in setup.cfg files is no longer supported, 
> change to [tool:pytest] instead.
> {code}
> This is because [\[pytest\] section in setup.cfg has been removed in pytest 
> 4.0|https://docs.pytest.org/en/4.1.0/deprecations.html#pytest-section-in-setup-cfg-files].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to