Skip to content

IDLE: test_configdialog failed #75677

Description

@serhiy-storchaka
BPO 31496
Nosy @terryjreedy, @serhiy-storchaka
Files
  • failure.txt
  • success.txt
  • 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:

    assignee = 'https://github.com/terryjreedy'
    closed_at = None
    created_at = <Date 2017-09-17.15:35:04.332>
    labels = ['expert-IDLE', '3.7', 'tests']
    title = 'IDLE: test_configdialog failed'
    updated_at = <Date 2017-09-19.10:03:13.425>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-09-19.10:03:13.425>
    actor = 'serhiy.storchaka'
    assignee = 'terry.reedy'
    closed = False
    closed_date = None
    closer = None
    components = ['IDLE', 'Tests']
    creation = <Date 2017-09-17.15:35:04.332>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['47142', '47143']
    hgrepos = []
    issue_num = 31496
    keywords = []
    message_count = 7.0
    messages = ['302369', '302378', '302382', '302433', '302440', '302478', '302511']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue31496'
    versions = ['Python 3.7']

    Activity

    1. serhiy-storchaka commented on Sep 17, 2017

      @serhiy-storchaka
      MemberAuthor
      $ ./python -m test -uall test_idle 
      Run tests sequentially
      0:00:00 load avg: 1.19 [1/1] test_idle
      invalid command name "140662890299080timer_event"
          while executing
      "140662890299080timer_event"
          ("after" script)
      test test_idle failed -- Traceback (most recent call last):
        File "/home/serhiy/py/cpython/Lib/idlelib/idle_test/test_configdialog.py", line 417, in test_highlight_target_text_mouse
          click_it(start_index)
        File "/home/serhiy/py/cpython/Lib/idlelib/idle_test/test_configdialog.py", line 401, in click_it
          x, y, dx, dy = hs.bbox(start)
      TypeError: 'NoneType' object is not iterable

      test_idle failed

      1 test failed:
      test_idle

      Total duration: 2 sec
      Tests result: FAILURE

      Maybe this is related to HiDPI display.

      On 2.7 the test is passed.

    2. terryjreedy commented on Sep 17, 2017

      @terryjreedy
      Member

      Are you running on Linux or Mac? What tk version?

      About the 'invalid command name' message: PR3622, patching idlelib.codecontext, merged to master 13 hours ago, fixed this for me on Windows. (It added CodeContext.__del__.) Did it fail on your machine or was it not yet merged on your machine?

      About the test failure. Hs is a Text with about 14 lines. The test initially executes
      hs.see(1.0)
      hs.update_idletasks()
      hs.bbox(start) means that the tag start is not visible, which should realistically not be possible. But a quick web search suggests there have been problems with HiDPI and tk, and hence tkinter.

      I am curious what value of start fails. Could you run once with 'print(start)' added above bbox(start)?

      Does inserting the following just before hs.bbox(start) fix the issue?
      hs.see(start)
      hs.update_idletasks()
      If not, we can skip. Does the following print one or multiple skip messages?
      try:
      x, y, dx, dy = hs.bbox(start)
      except TypeError:
      self.skipTest(f'bbox failure with start {start}')

    3. serhiy-storchaka commented on Sep 17, 2017

      @serhiy-storchaka
      MemberAuthor

      About the 'invalid command name' message: PR 3622 was not yet merged on your machine.

      Inserting hs.see(start) just before hs.bbox(start) fixes the issue.

      I have added some debug prints. Here are outputs, with and without a fix.

    4. terryjreedy commented on Sep 18, 2017

      @terryjreedy
      Member

      On windows, hs.see(start), followed or not by update_idletasks(), has no effect.

      Does the fix for bpo-31500 fix this also?

    5. serhiy-storchaka commented on Sep 18, 2017

      @serhiy-storchaka
      MemberAuthor

      No, the fix for bpo-31500 doesn't affect this issue.

    6. terryjreedy commented on Sep 18, 2017

      @terryjreedy
      Member

      If the test only fails with a HiDPI screen, then it must somehow be related. But if the highlight sample is normal size, like the font sample in
      https://bugs.python.org/file47141/Screenshot_20170917_213616.png
      then the relationship must not be as simple as I was thinking.

    7. serhiy-storchaka commented on Sep 19, 2017

      @serhiy-storchaka
      MemberAuthor

      Updated patch for bpo-31500 fixes this issue. I guess the problem was with using fixed size for the dialog widget. It was too small and the part of the example was not visible.

    8. transferred this issue fromon Apr 10, 2022
    9. terryjreedy commented on Jun 26, 2022

      @terryjreedy
      Member

      Closing as duplicate of #75681 (former 31500)

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions