selftest: planpythontestsuite() should fill 'name' is it's None
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Nov 2011 11:21:38 +0000 (12:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 14 Nov 2011 13:11:28 +0000 (14:11 +0100)
Otherwise make test shows tests with name "None".

metze

selftest/selftesthelpers.py

index a7924d60f42955bd54c61024e243311463cf3baa..a63dc98c64fdb5e9a8da19e80cf4edece8d2a9b5 100644 (file)
@@ -159,6 +159,8 @@ def planperltestsuite(name, path):
 
 
 def planpythontestsuite(env, module, name=None, extra_path=[]):
+    if name is None:
+        name = module
     pypath = list(extra_path)
     if not has_system_subunit_run:
         pypath.extend(["%s/lib/subunit/python" % srcdir(),