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

Intermittent test_tarfile failures on zLinux #66984

Closed
DavidEdelsohn mannequin opened this issue Nov 4, 2014 · 5 comments
Closed

Intermittent test_tarfile failures on zLinux #66984

DavidEdelsohn mannequin opened this issue Nov 4, 2014 · 5 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@DavidEdelsohn
Copy link
Mannequin

DavidEdelsohn mannequin commented Nov 4, 2014

BPO 22795
Nosy @pitrou, @vstinner, @berkerpeksag, @serhiy-storchaka
Superseder
  • bpo-20220: test_datetime, test_tarfile, test_strptime time zone failures
  • 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 2014-11-05.16:05:40.389>
    created_at = <Date 2014-11-04.15:28:27.492>
    labels = ['type-bug', 'tests']
    title = 'Intermittent test_tarfile failures on zLinux'
    updated_at = <Date 2014-11-05.17:44:39.901>
    user = 'https://bugs.python.org/DavidEdelsohn'

    bugs.python.org fields:

    activity = <Date 2014-11-05.17:44:39.901>
    actor = 'David.Edelsohn'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-11-05.16:05:40.389>
    closer = 'serhiy.storchaka'
    components = ['Tests']
    creation = <Date 2014-11-04.15:28:27.492>
    creator = 'David.Edelsohn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 22795
    keywords = []
    message_count = 5.0
    messages = ['230630', '230693', '230697', '230698', '230700']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'vstinner', 'berker.peksag', 'serhiy.storchaka', 'David.Edelsohn']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '20220'
    type = 'behavior'
    url = 'https://bugs.python.org/issue22795'
    versions = ['Python 3.4', 'Python 3.5']

    @DavidEdelsohn DavidEdelsohn mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Nov 4, 2014
    @DavidEdelsohn
    Copy link
    Mannequin Author

    DavidEdelsohn mannequin commented Nov 4, 2014

    test_list_command_verbose intermittently fails because the date comparison differs by six hours. I suspect a bad interaction between tests, but have not been able to find the culprit.

    FAIL: test_list_command_verbose (test.test_tarfile.CommandLineTest)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/mnt/9707/edelsohn/cpython-buildarea/3.x.edelsohn-zlinux-z/build/Lib/test/test_tarfile.py", line 1953, in test_list_command_verbose
        self.assertEqual(out, expected)
    AssertionError: b'?rw[39 chars]-01-05 18:19:43 ustar/conttype \n?rw-r--r-- ta[6470 chars]f \n' != b'?rw[39 chars]-01-06 00:19:43 ustar/conttype \n?rw-r--r-- ta[6470 chars]f \n'

    @DavidEdelsohn DavidEdelsohn mannequin changed the title Intermittent Intermittent test_tarfile failures on zLinux Nov 4, 2014
    @serhiy-storchaka
    Copy link
    Member

    This is a duplicate of bpo-20220.

    @DavidEdelsohn
    Copy link
    Mannequin Author

    DavidEdelsohn mannequin commented Nov 5, 2014

    Sorry, I was not aware of the other issue. Three tests seems to have intermittent failures.

    test_datetime
    test_tarfile
    test_strptime

    @DavidEdelsohn
    Copy link
    Mannequin Author

    DavidEdelsohn mannequin commented Nov 5, 2014

    I found the connection but I don't know the cause:

    Running test_imaplib prior to either test_datetime or test_tarfile causes the latter test to fail. test_datetime seems to fix the problem for test_tarfile if it precedes it.

    [1/3] test_imaplib
    [2/3] test_datetime
    test test_datetime failed -- multiple errors occurred; run in verbose mode for details
    [3/3/1] test_tarfile
    2 tests OK.
    1 test failed:
    test_datetime

    [1/3] test_imaplib
    [2/3] test_tarfile
    test test_tarfile failed -- Traceback (most recent call last):
      File "/mnt/9707/edelsohn/src/cpython/Lib/test/test_tarfile.py", line 1953, in test_list_command_verbose
        self.assertEqual(out, expected)
    AssertionError: b'?rw[39 chars]-01-05 18:19:43 ustar/conttype \n?rw-r--r-- ta[6470 chars]f \n' != b'?rw[39 chars]-01-06 00:19:43 ustar/conttype \n?rw-r--r-- ta[6470 chars]f \n'

    [3/3/1] test_datetime
    test test_datetime failed -- multiple errors occurred; run in verbose mode for details
    1 test OK.
    2 tests failed:
    test_datetime test_tarfile

    @DavidEdelsohn
    Copy link
    Mannequin Author

    DavidEdelsohn mannequin commented Nov 5, 2014

    Its the @run_with_tz decorations in test_imaplib and test_datetime. The TZ is not being restored after the test.

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

    No branches or pull requests

    1 participant