Test test.test_refs.ReferencesTest is failing when timezone is Etc/GMT-14
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Description
TZ="/usr/share/zoneinfo/Etc/GMT-14" python2.7 setup.py test -v
...
FAIL: test_set_target_with_message (test.test_refs.ReferencesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/test/test_refs.py", line 122, in test_set_target_with_message
self.assertEqualSignature(list(reference.log())[0].committer, sig)
File "/<<PKGBUILDDIR>>/test/utils.py", line 124, in assertEqualSignature
self.assertEqual(a.offset, b.offset)
AssertionError: 0 != 840
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with test/test_refs.py around ReferencesTest.test_set_target_with_message and the assertEqualSignature helper in test/utils.py. Reproduce the failure with TZ=/usr/share/zoneinfo/Etc/GMT-14 and trace how the committer offset is produced; done means the test suite passes for that timezone without weakening the signature checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100