summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2015-03-15 01:33:59 +0900
committershimizukawa <shimizukawa@gmail.com>2015-03-15 02:18:00 +0900
commite8e5bae15f0f3db658fd7c0cc34a5b04dd3ea48e (patch)
tree4fb77aa3930b6a0668e401275eac08824f18b712
parent6b7a2c8b6ab1b191d3776b33b191ed6a5f313b47 (diff)
downloadsphinx-git-e8e5bae15f0f3db658fd7c0cc34a5b04dd3ea48e.tar.gz
remove test that is not works correctly on travis.ci (+1 squashed commits)
-rw-r--r--tests/test_theming.py42
1 files changed, 1 insertions, 41 deletions
diff --git a/tests/test_theming.py b/tests/test_theming.py
index 9b94f1c9e..45229c842 100644
--- a/tests/test_theming.py
+++ b/tests/test_theming.py
@@ -11,15 +11,10 @@
import os
import zipfile
-import sys
-import subprocess
-import tempfile
-from path import path
from sphinx.theming import Theme, ThemeError
-from sphinx.util.osutil import cd
-from util import with_app, raises, TestApp, rootdir
+from util import with_app, raises, TestApp
@with_app(confoverrides={'html_theme': 'ziptheme',
@@ -84,38 +79,3 @@ def test_js_source(app, status, warning):
assert 'Underscore.js {v}'.format(v=v) in underscore_min, msg
underscore_src = (app.outdir / '_static' / 'underscore-{v}.js'.format(v=v)).text()
assert 'Underscore.js {v}'.format(v=v) in underscore_src, msg
-
-
-def test_theme_plugin():
- tempdir = path(tempfile.mkdtemp())
- testrootdir = rootdir / 'roots' / ('test-theming')
- pkgdir = tempdir / 'theming'
- testrootdir.copytree(pkgdir)
- with cd(pkgdir):
- command = [sys.executable, 'setup.py', 'install']
- try:
- proc = subprocess.Popen(
- command,
- env=os.environ,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- out, err = proc.communicate()
- print(out)
- print(err)
- assert proc.returncode == 0, 'expect zero status for setup.py'
- finally:
- pass
-
- command = ['sphinx-build', '.', '_build/html']
- try:
- proc = subprocess.Popen(
- command,
- env=os.environ,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- out, err = proc.communicate()
- print(out)
- print(err)
- assert proc.returncode == 0, 'expect zero status for setup.py'
- finally:
- tempdir.rmtree(ignore_errors=True)