Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Lib/idlelib/idle_test/test_zzdummy.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,7 +11,8 @@


usercfg = zzdummy.idleConf.userCfg
testcfg = {

make_testcfg = lambda: {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: define a function instead of lambda.

defmake_testcfg():

'main': config.IdleUserConfParser(''),
'highlight': config.IdleUserConfParser(''),
'keys': config.IdleUserConfParser(''),
Expand DownExpand Up@@ -128,7 +129,7 @@ def setUpClass(cls):
root.withdraw()
text = cls.text = Text(cls.root)
cls.editor = DummyEditwin(root, text)
zzdummy.idleConf.userCfg = testcfg
zzdummy.idleConf.userCfg = make_testcfg()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do this in setUp() instead of setUpClass().


@classmethod
def tearDownClass(cls):
Expand Down
Loading