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
Idle test_configdialog fails on Fedora 23, 3.6 #69139
Comments
In response to my python-list request for testing tkinter/idle on linux, Petr wrote On Fedora 21, the tests pass (Python 3.4.1 and latest dev version). On Fedora 23, I see: $ python3 -V
Python 3.4.3 <tests pass> $ ./python -V
Python 3.6.0a0
$ ./python -m test -ugui test_tk test_ttk_guionly test_idle
[1/3] test_tk
[2/3] test_ttk_guionly
[3/3] test_idle
test test_idle failed -- Traceback (most recent call last):
File "/home/pviktori/dev/cpython/Lib/idlelib/idle_test/test_configdialog.py",
line 27, in test_dialog
d=ConfigDialog(self.root, 'Test', _utest=True)
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line
71, in __init__
self.LoadConfigs()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line
1078, in LoadConfigs
self.LoadFontCfg()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line
980, in LoadFontCfg
self.SetFontSample()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line
858, in SetFontSample
self.labelFontSample.config(font=newFont)
File "/home/pviktori/dev/cpython/Lib/tkinter/__init__.py", line
1330, in configure
return self._configure('configure', cnf, kw)
File "/home/pviktori/dev/cpython/Lib/tkinter/__init__.py", line
1321, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: expected integer but got "" 2 tests OK. Tk version: 8.6.4 |
I'd be happy to do any further testing (modulo a vacation until this Tuesday), but unfortunately I don't have time to dive into tkinter myself and look for the cause. Also note: Fedora 23 is currently in alpha (though Python should be stable in it). |
Could you please add
just before the call in line 858 in Lib/tkinter/init.py and tell the output Petr. Could you please show your .idlerc/config-main.cfg file? I suppose self.fontSize.get() returns an empty string for unknown reasons. Interesting, how IDLE configuration file affects tests? |
Config files affecting tests (and tests affecting config files!) is an issue. Would like to see config files written into a different directory when running tests. Any concerns with doing that? |
Sorry for the delay; I lost the mail notification. I don't have a config-main.cfg file. The last output from the test, with the print added: test_dialog (idlelib.idle_test.test_configdialog.ConfigDialogTest) ... ('.139655680391704', 'configure', '-borderwidth', 5) ====================================================================== Traceback (most recent call last):
File "/home/pviktori/dev/cpython/Lib/idlelib/idle_test/test_configdialog.py", line 27, in test_dialog
d=ConfigDialog(self.root, 'Test', _utest=True)
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line 71, in __init__
self.LoadConfigs()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line 1078, in LoadConfigs
self.LoadFontCfg()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line 980, in LoadFontCfg
self.SetFontSample()
File "/home/pviktori/dev/cpython/Lib/idlelib/configDialog.py", line 858, in SetFontSample
self.labelFontSample.config(font=newFont)
File "/home/pviktori/dev/cpython/Lib/tkinter/__init__.py", line 1331, in configure
return self._configure('configure', cnf, kw)
File "/home/pviktori/dev/cpython/Lib/tkinter/__init__.py", line 1322, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: expected integer but got "" |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: