Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Aug 26, 2017
1 parent 9012d0a commit a203a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions spyder/config/tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def userconfig(tmpdir, monkeypatch):
return UserConfig('foo', defaults={}, subfolder=True,
version='1.0.0', raw_mode=True)

def test_userconfig_set_string_with_percentage(userconfig):
userconfig.set('section', 'option', u'%value')
assert userconfig.get('section', 'option') == '%value'


def test_userconfig_get_string_from_inifile(userconfig):
assert userconfig.get('section', 'option') == 'value'

Expand Down
4 changes: 2 additions & 2 deletions spyder/utils/ipython/start_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def kernel_config():
# Run lines of code at startup
run_lines_o = CONF.get('ipython_console', 'startup/run_lines')
if run_lines_o:
spy_cfg.IPKernelApp.exec_lines = [x.strip().replace(u'¿', u'%') for x in
run_lines_o.split(',')]
spy_cfg.IPKernelApp.exec_lines = [x.strip().replace(u'¿', u'%') for x
in run_lines_o.split(',')]
else:
spy_cfg.IPKernelApp.exec_lines = []

Expand Down

0 comments on commit a203a83

Please sign in to comment.