forked from pool/python-pydocstyle
- update 6.1.1:
* Split ``--source`` by lines instead of by characters (#536). * Enable full toml configuration and pyproject.toml (#534). * Support for Python 3.5 has been dropped (#510). * Add flag to disable `# noqa` comment processing in API (#485). * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). * Methods decorated with @overload no longer reported as D102 (#511). * Functions and nested functions decorated with @overload no longer reported as D103 (#511). * Treat "package" as an imperative verb for D401 (#356). * Fix the parsing of decorated one line functions (#499). * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). * Methods decorated with @overload no longer reported as D102. * Functions and nested functions decorated with @overload no longer reported as D103. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=21
This commit is contained in:
@@ -10,11 +10,11 @@ Closes https://github.com/PyCQA/pydocstyle/issues/177
|
||||
src/tests/test_integration.py | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py
|
||||
index d4ee72b..1f9507f 100644
|
||||
--- a/src/tests/test_integration.py
|
||||
+++ b/src/tests/test_integration.py
|
||||
@@ -81,9 +81,10 @@ def invoke(self, args="", target=None):
|
||||
Index: pydocstyle-6.1.1/src/tests/test_integration.py
|
||||
===================================================================
|
||||
--- pydocstyle-6.1.1.orig/src/tests/test_integration.py
|
||||
+++ pydocstyle-6.1.1/src/tests/test_integration.py
|
||||
@@ -99,9 +99,10 @@ class SandboxEnv:
|
||||
run_target = self.tempdir if target is None else \
|
||||
os.path.join(self.tempdir, target)
|
||||
|
||||
@@ -28,12 +28,3 @@ index d4ee72b..1f9507f 100644
|
||||
p = subprocess.Popen(cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
@@ -201,7 +202,7 @@ def test_run_as_named_module():
|
||||
"""
|
||||
# Add --match='' so that no files are actually checked (to make sure that
|
||||
# the return code is 0 and to reduce execution time).
|
||||
- cmd = shlex.split("python -m pydocstyle --match=''")
|
||||
+ cmd = shlex.split("\"{}\" -m pydocstyle --match=''".format(sys.executable))
|
||||
p = subprocess.Popen(cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
|
||||
Reference in New Issue
Block a user