We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent63875fa commit642a0ccCopy full SHA for 642a0cc
_unittests/ut_xrun_doc/test_documentation_examples.py
@@ -65,14 +65,15 @@ def add_test_methods(cls):
65
fold=os.path.normpath(os.path.join(this,"..","..","_doc","examples"))
66
found=os.listdir(fold)
67
fornameinfound:
68
-ifname.startswith("plot_")andname.endswith(".py"):
69
-short_name=os.path.split(os.path.splitext(name)[0])[-1]
+ifnotname.startswith("plot_")ornotname.endswith(".py"):
+continue
70
+short_name=os.path.split(os.path.splitext(name)[0])[-1]
71
-def_test_(self,name=name):
72
-res=self.run_test(fold,name,verbose=VERBOSE)
73
-self.assertTrue(res)
+def_test_(self,name=name):
+res=self.run_test(fold,name,verbose=VERBOSE)
74
+self.assertTrue(res)
75
-setattr(cls,f"test_{short_name}",_test_)
76
+setattr(cls,f"test_{short_name}",_test_)
77
78
79
TestDocumentationExamples.add_test_methods()