Skip to content

Commit 1bf9abc

Browse files
committed
Configure setup.cfg for pytest
python-ldap uses a non-standard configuration for tests. Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent dc7a3fe commit 1bf9abc

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__/
66
.tox
77
.coverage*
88
!.coveragerc
9+
/.cache
910

1011
# shared libs installed by 'setup.py test'
1112
/Lib/*.so*

Doc/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Run reference leak tests::
224224

225225
$ cd path/to/python-ldap
226226
$ /tmp/refleak/bin/pip install --upgrade .
227-
$ /tmp/refleak/bin/pytest -v -R: Tests/t_*.py
227+
$ /tmp/refleak/bin/pytest -v -R:
228228

229229
Run ``/tmp/refleak/bin/pip install --upgrade .`` every time a file outside
230230
of ``Tests/`` is modified.

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ packager = python-ldap team
3535
distribution_name = openSUSE 11.x
3636
release = 1
3737
doc_files = CHANGES README INSTALL TODO Demo/
38+
39+
# pytest, https://docs.pytest.org/en/latest/customize.html
40+
[tool:pytest]
41+
testpaths = Tests
42+
python_files = t_*.py
43+
filterwarnings =
44+
error
45+
ignore::ldap.LDAPBytesWarning

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy