Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx tests fail because of missing dir #47734

Closed
cakebread mannequin opened this issue Aug 1, 2008 · 2 comments
Closed

Sphinx tests fail because of missing dir #47734

cakebread mannequin opened this issue Aug 1, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@cakebread
Copy link
Mannequin

cakebread mannequin commented Aug 1, 2008

BPO 3484
Nosy @birkenfeld, @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-08-01.16:28:02.585>
created_at = <Date 2008-08-01.16:26:08.098>
labels = ['docs']
title = 'Sphinx tests fail because of missing dir'
updated_at = <Date 2008-08-01.16:28:02.584>
user = 'https://bugs.python.org/cakebread'

bugs.python.org fields:

activity = <Date 2008-08-01.16:28:02.584>
actor = 'benjamin.peterson'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-08-01.16:28:02.585>
closer = 'benjamin.peterson'
components = ['Documentation tools (Sphinx)']
creation = <Date 2008-08-01.16:26:08.098>
creator = 'cakebread'
dependencies = []
files = []
hgrepos = []
issue_num = 3484
keywords = []
message_count = 2.0
messages = ['70567', '70568']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'benjamin.peterson', 'cakebread']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3484'
versions = ['Python 2.5']

@cakebread
Copy link
Mannequin Author

cakebread mannequin commented Aug 1, 2008

When I try to run the unit tests with tests/run.py they fail because
this directory is missing: tests/root/_build

If I simply create the directory and run the tests, they pass.

Running Sphinx test suite...
EEE...
======================================================================
ERROR: test_config.test_core_config
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/test_config.py",
line 20, in test_core_config
    cfg = TestApp(confoverrides=overrides).config
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/util.py",
line 106, in __init__
    freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/application.py",
line 101, in __init__
    self.builder = builderclass(self, freshenv=freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/builder.py",
line 58, in __init__
    os.mkdir(self.doctreedir)
OSError: [Errno 2] No such file or directory:
'/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/root/_build/doctrees'

======================================================================
ERROR: test_config.test_extension_values
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/test_config.py",
line 65, in test_extension_values
    app = TestApp()
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/util.py",
line 106, in __init__
    freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/application.py",
line 101, in __init__
    self.builder = builderclass(self, freshenv=freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/builder.py",
line 58, in __init__
    os.mkdir(self.doctreedir)
OSError: [Errno 2] No such file or directory:
'/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/root/_build/doctrees'

======================================================================
ERROR: Failure: OSError ([Errno 2] No such file or directory:
'/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/root/_build/doctrees')
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/nose/loader.py", line 364, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.5/site-packages/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.5/site-packages/nose/importer.py", line 84, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/test_markup.py",
line 21, in <module>
    app = TestApp()
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/util.py",
line 106, in __init__
    freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/application.py",
line 101, in __init__
    self.builder = builderclass(self, freshenv=freshenv)
  File
"/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/sphinx/builder.py",
line 58, in __init__
    os.mkdir(self.doctreedir)
OSError: [Errno 2] No such file or directory:
'/var/tmp/portage/dev-python/sphinx-0.4.2-r1/work/Sphinx-0.4.2/tests/root/_build/doctrees'

Ran 6 tests in 3.785s

FAILED (errors=3)

@cakebread cakebread mannequin assigned birkenfeld Aug 1, 2008
@cakebread cakebread mannequin added the docs Documentation in the Doc dir label Aug 1, 2008
@benjaminp
Copy link
Contributor

Sorry, time machine! I fixed this just 2 days ago. :)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants