Skip to content

Trace: unit tests are non-deterministically broken on Windows #4366

@dhermes

Description

@dhermes

e.g.:

================================== FAILURES ===================================
__________________ Test__TraceAPI.test_list_traces_no_paging __________________
Traceback (most recent call last):
  File "C:\projects\google-cloud-python\trace\tests\unit\test__gax.py", line 215, in test_list_traces_no_paging
    _rfc3339_to_datetime(span['startTime']),
  File "c:\projects\google-cloud-python\.nox\default\lib\site-packages\google\cloud\_helpers.py", line 274, in _rfc3339_to_datetime
    dt_str, _RFC3339_MICROS).replace(tzinfo=UTC)
  File "c:\python27\Lib\_strptime.py", line 332, in _strptime
    (data_string, format))
ValueError: time data '2017-11-08T21:41:48Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
1 failed, 15 passed in 0.48 seconds

I think this is related to #4323. I had to make changes there because of .isoformat() quirks on Windows. It looks like the .00000 seems to be truncated in .isoformat()?

Metadata

Metadata

Assignees

Labels

api: cloudtraceIssues related to the Cloud Trace API.flakypriority: p2Moderately-important priority. Fix may not be included in next release.testingtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
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