Skip to content

Tests failing #32

@opoplawski

Description

@opoplawski

I'm getting the following test failures:

+ py.test-2.7 -v jupyter_core/tests/
============================= test session starts ==============================
platform linux2 -- Python 2.7.10 -- py-1.4.29 -- pytest-2.6.4 -- /usr/bin/python
collecting ... collected 38 items

jupyter_core/tests/test_application.py::test_basic PASSED
jupyter_core/tests/test_application.py::test_default_traits PASSED
jupyter_core/tests/test_application.py::test_custom_config PASSED
jupyter_core/tests/test_application.py::test_cli_override PASSED
jupyter_core/tests/test_application.py::test_generate_config PASSED
jupyter_core/tests/test_application.py::test_load_config FAILED
jupyter_core/tests/test_command.py::test_config_dir FAILED
jupyter_core/tests/test_command.py::test_data_dir FAILED
jupyter_core/tests/test_command.py::test_runtime_dir FAILED
jupyter_core/tests/test_command.py::test_paths FAILED
jupyter_core/tests/test_command.py::test_paths_json FAILED
jupyter_core/tests/test_command.py::test_subcommand_not_given FAILED
jupyter_core/tests/test_command.py::test_help FAILED
jupyter_core/tests/test_command.py::test_subcommand_not_found FAILED
jupyter_core/tests/test_command.py::test_subcommand_list PASSED
jupyter_core/tests/test_migrate.py::test_migrate_file PASSED
jupyter_core/tests/test_migrate.py::test_migrate_dir PASSED
jupyter_core/tests/test_migrate.py::test_migrate_one PASSED
jupyter_core/tests/test_migrate.py::test_migrate_config PASSED
jupyter_core/tests/test_migrate.py::test_migrate_custom_default PASSED
jupyter_core/tests/test_migrate.py::test_migrate_nothing PASSED
jupyter_core/tests/test_migrate.py::test_migrate_default PASSED
jupyter_core/tests/test_migrate.py::test_migrate PASSED
jupyter_core/tests/test_paths.py::test_config_dir_darwin PASSED
jupyter_core/tests/test_paths.py::test_config_dir_windows PASSED
jupyter_core/tests/test_paths.py::test_config_dir_linux PASSED
jupyter_core/tests/test_paths.py::test_data_dir_env PASSED
jupyter_core/tests/test_paths.py::test_data_dir_darwin PASSED
jupyter_core/tests/test_paths.py::test_data_dir_windows PASSED
jupyter_core/tests/test_paths.py::test_data_dir_linux PASSED
jupyter_core/tests/test_paths.py::test_runtime_dir_env PASSED
jupyter_core/tests/test_paths.py::test_runtime_dir_darwin PASSED
jupyter_core/tests/test_paths.py::test_runtime_dir_windows PASSED
jupyter_core/tests/test_paths.py::test_runtime_dir_linux PASSED
jupyter_core/tests/test_paths.py::test_jupyter_path PASSED
jupyter_core/tests/test_paths.py::test_jupyter_path_env PASSED
jupyter_core/tests/test_paths.py::test_jupyter_path_sys_prefix PASSED
jupyter_core/tests/test_paths.py::test_jupyter_path_subdir PASSED

=================================== FAILURES ===================================
_______________________________ test_load_config _______________________________

    def test_load_config():
        config_dir = mkdtemp()
        wd = mkdtemp()
        with open(pjoin(config_dir, 'dummy_app_config.py'), 'w') as f:
            f.write('c.DummyApp.m = 1\n')
            f.write('c.DummyApp.n = 1')
        with patch.object(py3compat, 'getcwd', lambda : wd):
            app = DummyApp(config_dir=config_dir)
>           app.initialize()

jupyter_core/tests/test_application.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
<string>:2: in initialize
    ???
/usr/lib/python2.7/site-packages/traitlets/config/application.py:75: in catch_config_error
    return method(app, *args, **kwargs)
jupyter_core/application.py:233: in initialize
    self.parse_command_line(argv)
<string>:2: in parse_command_line
    ???
/usr/lib/python2.7/site-packages/traitlets/config/application.py:81: in catch_config_error
    app.exit(1)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <jupyter_core.tests.test_application.DummyApp object at 0x7f2fa7997410>
exit_status = 1

    def exit(self, exit_status=0):
        self.log.debug("Exiting application: %s" % self.name)
>       sys.exit(exit_status)
E       SystemExit: 1

/usr/lib/python2.7/site-packages/traitlets/config/application.py:582: SystemExit
----------------------------- Captured stdout call -----------------------------
A Jupyter Application

Options
-------

Arguments that take values are actually convenience aliases to full
Configurables, whose aliases are listed on the help line. For more information
on full configurables, see '--help-all'.

--debug
    set log level to logging.DEBUG (maximize logging output)
-y
    Answer yes to any questions instead of prompting.
--generate-config
    generate default config file
--config=<Unicode> (JupyterApp.config_file)
    Default: u''
    Full path of a config file.
--log-level=<Enum> (Application.log_level)
    Default: 30
    Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
    Set the log level by value or name.

To see all available configurables, use `--help-all`

----------------------------- Captured stderr call -----------------------------
[DummyApp] CRITICAL | Bad config encountered during initialization:
[DummyApp] CRITICAL | Unrecognized flag: '-v'
_______________________________ test_config_dir ________________________________

    def test_config_dir():
>       assert_output('--config-dir', jupyter_config_dir())

jupyter_core/tests/test_command.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
jupyter_core/tests/test_command.py:31: in assert_output
    assert get_jupyter_output(cmd) == expected
jupyter_core/tests/test_command.py:27: in get_jupyter_output
    return check_output(['jupyter'] + cmd).decode('utf8').strip()
/usr/lib64/python2.7/subprocess.py:566: in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
/usr/lib64/python2.7/subprocess.py:710: in __init__
    errread, errwrite)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions