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

testRegisterResult in test_unittest fails in verbose mode #77927

Closed
serhiy-storchaka opened this issue Jun 3, 2018 · 6 comments
Closed

testRegisterResult in test_unittest fails in verbose mode #77927

serhiy-storchaka opened this issue Jun 3, 2018 · 6 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 33746
Nosy @vstinner, @rbtcollins, @ezio-melotti, @voidspace, @serhiy-storchaka, @miss-islington
PRs
  • bpo-33746: Fix test_unittest in verbose mode #7389
  • bpo-33746: Fix test_unittest when run in verbose mode #7799
  • [3.7] bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) #7820
  • [3.6] bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) #7821
  • 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 = None
    closed_at = <Date 2018-06-20.10:03:25.154>
    created_at = <Date 2018-06-03.11:33:27.319>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = 'testRegisterResult in test_unittest fails in verbose mode'
    updated_at = <Date 2018-06-20.10:04:16.990>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2018-06-20.10:04:16.990>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-06-20.10:03:25.154>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2018-06-03.11:33:27.319>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33746
    keywords = ['patch']
    message_count = 6.0
    messages = ['318533', '320040', '320041', '320042', '320047', '320048']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'rbcollins', 'ezio.melotti', 'michael.foord', 'serhiy.storchaka', 'miss-islington']
    pr_nums = ['7389', '7799', '7820', '7821']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33746'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    @serhiy-storchaka
    Copy link
    Member Author

    $ ./python -m test -m testRegisterResult test_unittest
    Run tests sequentially
    0:00:00 load avg: 4.42 [1/1] test_unittest

    == Tests result: SUCCESS ==

    1 test OK.

    Total duration: 98 ms
    Tests result: SUCCESS

    $ ./python -m test -v -m testRegisterResult test_unittest
    == CPython 3.8.0a0 (heads/master-dirty:a801cf164b, Jun 3 2018, 12:58:45) [GCC 7.3.0]
    == Linux-4.15.0-22-generic-x86_64-with-glibc2.9 little-endian
    == cwd: /home/serhiy/py/cpython/build/test_python_3610
    == CPU count: 8
    == encodings: locale=UTF-8, FS=utf-8
    Run tests sequentially
    0:00:00 load avg: 4.17 [1/1] test_unittest
    testRegisterResult (unittest.test.test_break.TestBreak) ... FAIL
    testRegisterResult (unittest.test.test_break.TestBreakDefaultIntHandler) ... ok
    testRegisterResult (unittest.test.test_break.TestBreakSignalDefault) ... ok
    testRegisterResult (unittest.test.test_break.TestBreakSignalIgnored) ... ok

    ======================================================================
    FAIL: testRegisterResult (unittest.test.test_break.TestBreak)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/serhiy/py/cpython/Lib/unittest/test/test_break.py", line 48, in testRegisterResult
        self.fail("odd object in result set")
    AssertionError: odd object in result set

    Ran 4 tests in 0.002s

    FAILED (failures=1)
    test test_unittest failed
    test_unittest failed

    == Tests result: FAILURE ==

    1 test failed:
    test_unittest

    Total duration: 138 ms
    Tests result: FAILURE

    The test is passed in 2.7 and 3.4. It fails only starting from 3.5.

    @serhiy-storchaka serhiy-storchaka added 3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jun 3, 2018
    @vstinner
    Copy link
    Member

    New changeset fd8fbce by Victor Stinner in branch 'master':
    bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
    fd8fbce

    @miss-islington
    Copy link
    Contributor

    New changeset 232add0 by Miss Islington (bot) in branch '3.7':
    bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
    232add0

    @miss-islington
    Copy link
    Contributor

    New changeset 2b75742 by Miss Islington (bot) in branch '3.6':
    bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
    2b75742

    @vstinner
    Copy link
    Member

    I tested manually: "./python -m test -v test_unittest" pass in 2.7, 3.6, 3.7 and master.

    @serhiy-storchaka
    Copy link
    Member Author

    Thanks Victor!

    @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 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants