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_unittest fails on Windows #50449

Closed
abbeyj mannequin opened this issue Jun 5, 2009 · 2 comments
Closed

test_unittest fails on Windows #50449

abbeyj mannequin opened this issue Jun 5, 2009 · 2 comments
Assignees
Labels
OS-windows tests Tests in the Lib/test dir

Comments

@abbeyj
Copy link
Mannequin

abbeyj mannequin commented Jun 5, 2009

BPO 6199
Nosy @voidspace
Files
  • test_unittest_on_windows.patch
  • 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/voidspace'
    closed_at = <Date 2009-06-05.14:15:29.725>
    created_at = <Date 2009-06-05.05:57:59.515>
    labels = ['tests', 'OS-windows']
    title = 'test_unittest fails on Windows'
    updated_at = <Date 2009-06-05.14:15:29.723>
    user = 'https://bugs.python.org/abbeyj'

    bugs.python.org fields:

    activity = <Date 2009-06-05.14:15:29.723>
    actor = 'michael.foord'
    assignee = 'michael.foord'
    closed = True
    closed_date = <Date 2009-06-05.14:15:29.725>
    closer = 'michael.foord'
    components = ['Tests', 'Windows']
    creation = <Date 2009-06-05.05:57:59.515>
    creator = 'abbeyj'
    dependencies = []
    files = ['14191']
    hgrepos = []
    issue_num = 6199
    keywords = ['patch']
    message_count = 2.0
    messages = ['88923', '88947']
    nosy_count = 2.0
    nosy_names = ['michael.foord', 'abbeyj']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue6199'
    versions = ['Python 2.7']

    @abbeyj
    Copy link
    Mannequin Author

    abbeyj mannequin commented Jun 5, 2009

    test_unittest fails on Windows with:
    ======================================================================
    FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "C:\Projects\python-trunk\lib\test\test_unittest.py", line 3540,
    in test_find_tests_with_package
        self.assertEqual(suite, ['load_tests', '/foo/test_directory2 module
    tests'])

    AssertionError: Lists differ: ['load_tests', '/foo\\test_dir... !=
    ['load_tests', '/foo/test_dire...

    First differing element 1:
    /foo\test_directory2 module tests
    /foo/test_directory2 module tests

    • ['load_tests', '/foo\\test_directory2 module tests']
      ? ^^

    + ['load_tests', '/foo/test_directory2 module tests']
    ? ^

    ----------------------------------------------------------------------

    Patch attached.

    @abbeyj abbeyj mannequin added tests Tests in the Lib/test dir OS-windows labels Jun 5, 2009
    @voidspace
    Copy link
    Contributor

    Thanks - I should have tested on Windows first. Tests now pass on
    Windows and Mac OS X. Committed revision 73247.

    @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
    OS-windows tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant