~ubuntu-branches/ubuntu/trusty/python3.4/trusty-proposed

« back to all changes in this revision

Viewing changes to Lib/tkinter/test/README

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-25 09:44:27 UTC
  • Revision ID: package-import@ubuntu.com-20131125094427-lzxj8ap5w01lmo7f
Tags: upstream-3.4~b1
ImportĀ upstreamĀ versionĀ 3.4~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Writing new tests
 
2
=================
 
3
 
 
4
Precaution
 
5
----------
 
6
 
 
7
    New tests should always use only one Tk window at once, like all the
 
8
    current tests do. This means that you have to destroy the current window
 
9
    before creating another one, and clean up after the test. The motivation
 
10
    behind this is that some tests may depend on having its window focused
 
11
    while it is running to work properly, and it may be hard to force focus
 
12
    on your window across platforms (right now only test_traversal at
 
13
    test_ttk.test_widgets.NotebookTest depends on this).
 
14