Skip to content

str(datetime_obj) doesn't include microseconds if their value is 0 #51591

@ezio-melotti

Description

@ezio-melotti
BPO 7342
Nosy @tim-one, @doerwalter, @birkenfeld, @pitrou, @ezio-melotti, @bitdancer
Files
  • issue7342.patch: Fixed the test to use a datetime obj with a specific number of microseconds.
  • 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/ezio-melotti'
    closed_at = <Date 2009-12-18.15:41:36.920>
    created_at = <Date 2009-11-17.22:02:49.412>
    labels = ['type-bug', 'tests']
    title = "str(datetime_obj) doesn't include microseconds if their value is 0"
    updated_at = <Date 2009-12-18.15:41:36.919>
    user = 'https://github.com/ezio-melotti'

    bugs.python.org fields:

    activity = <Date 2009-12-18.15:41:36.919>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2009-12-18.15:41:36.920>
    closer = 'ezio.melotti'
    components = ['Tests']
    creation = <Date 2009-11-17.22:02:49.412>
    creator = 'ezio.melotti'
    dependencies = []
    files = ['15476']
    hgrepos = []
    issue_num = 7342
    keywords = ['patch']
    message_count = 9.0
    messages = ['95404', '95405', '95406', '95532', '95536', '95537', '96079', '96344', '96568']
    nosy_count = 6.0
    nosy_names = ['tim.peters', 'doerwalter', 'georg.brandl', 'pitrou', 'ezio.melotti', 'r.david.murray']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue7342'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions