You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2020/12/15 15:14:22 UTC

[qpid-dispatch] branch master updated: DISPATCH-1885 Preserve test docstring in @SkipIfNeeded decorator (#956)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b91099  DISPATCH-1885 Preserve test docstring in @SkipIfNeeded decorator (#956)
8b91099 is described below

commit 8b91099c6fbbca2e129326e4fcddf5d24a6cd237
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Tue Dec 15 16:14:12 2020 +0100

    DISPATCH-1885 Preserve test docstring in @SkipIfNeeded decorator (#956)
---
 tests/system_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/system_test.py b/tests/system_test.py
index bdce4a4..5181492 100755
--- a/tests/system_test.py
+++ b/tests/system_test.py
@@ -34,6 +34,7 @@ from __future__ import absolute_import
 from __future__ import print_function
 
 import errno, os, time, socket, random, subprocess, shutil, unittest, __main__, re, sys
+import functools
 from datetime import datetime
 from subprocess import PIPE, STDOUT
 from copy import copy
@@ -911,6 +912,7 @@ class SkipIfNeeded(object):
 
     def __call__(self, f):
 
+        @functools.wraps(f)
         def wrap(*args, **kwargs):
             """
             Wraps original test method's invocation and dictates whether or


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org