Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
add warnings for test skipped by travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 19, 2015
1 parent ccc384a commit 4ebea75
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _unittests/ut_automation/test_simpleserver_rss_ensae.py
Expand Up @@ -9,6 +9,7 @@
import unittest
import warnings
import shutil
import warnings

try:
import src
Expand Down Expand Up @@ -84,6 +85,7 @@ def test_server_start_run(self):

if "travis" in sys.executable:
# skip travis and Flask
warnings.warn("travis, unable to test TestSimpleServerRSSTeaching.test_server_start_run")
return

temp = get_temp_folder(__file__, "temp_rss_starter")
Expand Down
2 changes: 2 additions & 0 deletions _unittests/ut_documentation/test_LONG_notebook_2a_long.py
Expand Up @@ -7,6 +7,7 @@
import os
import unittest
import re
import warnings

try:
import src
Expand Down Expand Up @@ -83,6 +84,7 @@ def test_notebook_runner_2a_long(self):

if "travis" in sys.executable:
# skip travis and R
warnings.warn("travis, unable to test TestNotebookRunner2a_long.test_notebook_runner_2a_long")
return

temp = get_temp_folder(__file__, "temp_notebook2a_long_")
Expand Down
2 changes: 2 additions & 0 deletions _unittests/ut_documentation/test_SKIP_notebook_2a_csharp.py
Expand Up @@ -7,6 +7,7 @@
import os
import unittest
import re
import warnings

try:
import src
Expand Down Expand Up @@ -83,6 +84,7 @@ def test_notebook_runner_2a(self):

if "travis" in sys.executable:
# skip C# on linux
warnings.warn("travis, unable to test TestNotebookRunner2a_csharp.test_notebook_runner_2a")
return

if not sys.platform.startswith("win"):
Expand Down
3 changes: 2 additions & 1 deletion _unittests/ut_module/test_notebooks_bug_latex1.py
Expand Up @@ -7,7 +7,7 @@
import os
import unittest
import re

import warnings

try:
import src
Expand Down Expand Up @@ -62,6 +62,7 @@ def test_notebook_latex1(self):
temp = get_temp_folder(__file__, "temp_nb_bug_latex1")

if "travis" in sys.executable:
warnings.warn("travis, unable to test TestNoteBooksBugLatex_ecs.test_notebook_latex1")
return

res = process_notebooks(nbs, temp, temp, formats=formats)
Expand Down
2 changes: 2 additions & 0 deletions _unittests/ut_module/test_r.py
Expand Up @@ -6,6 +6,7 @@
import os
import unittest
import re
import warnings


try:
Expand Down Expand Up @@ -51,6 +52,7 @@ def test_r(self):

if "travis" in sys.executable:
# skip travis and R
warnings.warn("travis, unable to test TestR.test_r")
return

assert r_and_notebook()
Expand Down

0 comments on commit 4ebea75

Please sign in to comment.