Skip to content
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

test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x #75151

Closed
vstinner opened this issue Jul 19, 2017 · 13 comments
Assignees
Labels
3.7 (EOL) end of life OS-windows tests Tests in the Lib/test dir topic-IDLE

Comments

@vstinner
Copy link
Member

BPO 30968
Nosy @terryjreedy, @pfmoore, @vstinner, @tjguk, @zware, @zooba, @mlouielu
PRs
  • [3.6] bpo-30917: IDLE: Add config.IdleConf unittests (GH-2691) #2753
  • bpo-30968: Fix test_get_font in IDLE's test_config.  #2769
  • [3.6] bpo-30928: prepare idlelib/NEWS.txt for 3.6.5 entries. #5508
  • 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 = <Date 2017-07-20.05:02:15.289>
    created_at = <Date 2017-07-19.11:28:53.389>
    labels = ['expert-IDLE', '3.7', 'tests', 'OS-windows']
    title = 'test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x'
    updated_at = <Date 2018-02-03.05:52:36.393>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-02-03.05:52:36.393>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2017-07-20.05:02:15.289>
    closer = 'terry.reedy'
    components = ['IDLE', 'Tests', 'Windows']
    creation = <Date 2017-07-19.11:28:53.389>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30968
    keywords = ['buildbot']
    message_count = 13.0
    messages = ['298668', '298679', '298695', '298697', '298701', '298702', '298706', '298711', '298735', '298737', '298741', '298758', '298759']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'paul.moore', 'vstinner', 'tim.golden', 'zach.ware', 'steve.dower', 'louielu']
    pr_nums = ['2753', '2769', '5508']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30968'
    versions = ['Python 3.7']

    @vstinner
    Copy link
    Member Author

    The build only contains one change:

    commit f776eb0

    bpo-30917: IDLE: Add config.IdleConf unittests (bpo-2691) Patch by Louie Lu.

    http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/893/steps/test/logs/stdio

    ======================================================================
    FAIL: test_get_font (idlelib.idle_test.test_config.IdleConfTest)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\idlelib\idle_test\test_config.py", line 605, in test_get_font
        (f['family'], 10 if f['size'] < 10 else f['size'], f['weight']))
    AssertionError: Tuples differ: ('Courier New', 9, 'normal') != ('Courier New', 10, 'normal')

    First differing element 1:
    9
    10

    • ('Courier New', 9, 'normal')
      ? ^

    + ('Courier New', 10, 'normal')
    ? ^^

    @vstinner vstinner added tests Tests in the Lib/test dir OS-windows 3.7 (EOL) end of life topic-IDLE labels Jul 19, 2017
    @mlouielu
    Copy link
    Mannequin

    mlouielu mannequin commented Jul 19, 2017

    After checking source code, I found that is my fault on the test code. After the blocker PR 2754 been merged, I'll fix this issue.

    @terryjreedy
    Copy link
    Member

    I merged pr2754 in pr2753, the 3.6 backport of pr2691. To avoid breaking 3.6 buildbots more than one test, I will hold off merging pr2753 until a fix is available.

    @terryjreedy
    Copy link
    Member

    Louie, I am fixing this (I believe).

    @terryjreedy
    Copy link
    Member

    New changeset 9f9192a by terryjreedy in branch 'master':
    bpo-30968: Fix test_get_font in IDLE's test_config. (bpo-2769)
    9f9192a

    @mlouielu
    Copy link
    Mannequin

    mlouielu mannequin commented Jul 20, 2017

    Yes, Terry's patch fixed this.

    @terryjreedy
    Copy link
    Member

    Fix worked: test_idle passed in build 897.
    http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/897/steps/test/logs/stdio
    I also included the fix of PR2769 in PR2753 (3.6 backport).

    @vstinner
    Copy link
    Member Author

    Terry: FYI your commit message starts with multiple spaces. I would also suggest you to format your name as you did previously: "Terry Jan Reedy".

    commit 9f9192a
    Author: terryjreedy <tjreedy@udel.edu>
    Date: Wed Jul 19 20:45:36 2017 -0400

            bpo-30968: Fix test_get_font in IDLE's test_config.  (bpo-2769)
    

    @terryjreedy
    Copy link
    Member

    I don't understand 'format your name' as there is no formatting that I did. Github copies account name and email as they are.

    I have no idea about commit message. The PR title has no extra spaces. But github does not always copy correctly.

    @terryjreedy
    Copy link
    Member

    I will try to look at the first line more carefully before hitting the 2nd green button.

    @vstinner
    Copy link
    Member Author

    Terry J. Reedy: I don't understand 'format your name' as there is no formatting that I did.

    GitHub picks your commits unchanged. Git picks your name from your .gitconfig configuration file, global $HOME/.gitconfig or local <cpython>/.gitconfig.

    It's just that I saw "terryjreedy" in your last commit, instead of the usual "Terry Jan Reedy".

    It's up to you to pick whatever name you want, I was just surprised to see the name formatted differently.

    I have no idea about commit message. The PR title has no extra spaces. But github does not always copy correctly.

    It doesn't matter at all. It's just that I was surprised ;-)

    @mlouielu
    Copy link
    Mannequin

    mlouielu mannequin commented Jul 21, 2017

    For the problem about the small name in git log Author, if you want to changed it, it will need to setup at https://github.com/settings/profile and update the first column "Name".

    I think this is because we merged on GitHub, and GitHub ignores the git author but use GitHub account's name (if this didn't setup, it will fallback to GitHub account). I have some small name with "mlouielu" when I changed to this new account.

    @terryjreedy
    Copy link
    Member

    Thanks. I will see what that does.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life OS-windows tests Tests in the Lib/test dir topic-IDLE
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants