Skip to content

Commit ae64c40

Browse files
committed
skip notebook
1 parent a12c345 commit ae64c40

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

_unittests/ut_xrun_doc/test_documentation_notebook.py

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -111,40 +111,38 @@ def add_test_methods_path(cls, fold, copy_folder=None):
111111
for name in found:
112112
if name.endswith(".ipynb"):
113113
fullname = os.path.join(fold, name)
114-
if "interro_rapide_" in name or (
115-
sys.platform == "win32"
116-
and (
117-
"protobuf" in name
118-
or "td_note_2021" in name
119-
or "nb_pandas" in name
114+
reason = None
115+
if not reason and (
116+
"interro_rapide_" in name
117+
or (
118+
sys.platform == "win32"
119+
and (
120+
"protobuf" in name
121+
or "td_note_2021" in name
122+
or "nb_pandas" in name
123+
)
120124
)
121125
):
122-
123-
@unittest.skip("notebook with questions or issues with windows")
124-
def _test_(self, fullname=fullname):
125-
res = self.run_test(fullname, verbose=VERBOSE)
126-
self.assertIn(res, (-1, 1))
127-
128-
elif "module_file_regex" in name and sys.platform != "win32":
129-
130-
@unittest.skip("issues with linux")
131-
def _test_(self, fullname=fullname):
132-
res = self.run_test(fullname, verbose=VERBOSE)
133-
self.assertIn(res, (-1, 1))
134-
135-
elif (
126+
reason = "protobuf on windows not working"
127+
if not reason and "seance5_algo2" in name:
128+
reason = "profiling not working on CI"
129+
if (
130+
not reason
131+
and "module_file_regex" in name
132+
and sys.platform != "win32"
133+
):
134+
reason = "regex not working on windows"
135+
if not reason and (
136136
"ml_a_tree_overfitting" in name
137137
and os.environ.get("CIRCLECI", "undefined") != "undefined"
138138
):
139+
reason = "tree_overfitting too long"
140+
if not reason and "pretraitement_son" in name:
141+
reason = "audio too long"
139142

140-
@unittest.skip("issues with circleci")
141-
def _test_(self, fullname=fullname):
142-
res = self.run_test(fullname, verbose=VERBOSE)
143-
self.assertIn(res, (-1, 1))
144-
145-
elif "pretraitement_son" in name:
143+
if reason:
146144

147-
@unittest.skip("audio not working")
145+
@unittest.skip(reason)
148146
def _test_(self, fullname=fullname):
149147
res = self.run_test(fullname, verbose=VERBOSE)
150148
self.assertIn(res, (-1, 1))

0 commit comments

Comments
 (0)