<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dateutil-git.git/dateutil/test, branch pganssle-patch-1</title>
<subtitle>github.com: dateutil/dateutil.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/'/>
<entry>
<title>Fix custom repr for ParserError</title>
<updated>2020-01-02T19:08:55+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2020-01-02T16:54:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=ea7f441b455cabbae2bf98f2d10fd11724001155'/>
<id>ea7f441b455cabbae2bf98f2d10fd11724001155</id>
<content type='text'>
This was originally dead code, because an indentation error had `__repr__`
defined after the `return` statement in `__str__`. The definition of the
`__repr__` is also changed to be more in line with the conception of a
repr as "what you would have to evalue to get this object".

Even though this is not guaranteed behavior, this commit also adds a
regression test to avoid simple errors like this in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was originally dead code, because an indentation error had `__repr__`
defined after the `return` statement in `__str__`. The definition of the
`__repr__` is also changed to be more in line with the conception of a
repr as "what you would have to evalue to get this object".

Even though this is not guaranteed behavior, this commit also adds a
regression test to avoid simple errors like this in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix TypeError in parser wrapper logic</title>
<updated>2020-01-02T17:36:59+00:00</updated>
<author>
<name>Mark Bailey</name>
<email>msb@eastface.co.uk</email>
</author>
<published>2019-12-23T22:46:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=79d2e486a34911ada6d81701f14dd3c4b9790afd'/>
<id>79d2e486a34911ada6d81701f14dd3c4b9790afd</id>
<content type='text'>
In attempting to pass-through the string representation of an exception
we are wrapping, we made the erroneous assumption that `args[0]` would
always be a string (or something that can concatenate cleanly with a
string). This turns out not to be the case with `IllegalMonthError`,
where it is an integer, so to avoid raising an erroneous `TypeError`, we
first convert the wrapped exception to a string.

See GH issue #981.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In attempting to pass-through the string representation of an exception
we are wrapping, we made the erroneous assumption that `args[0]` would
always be a string (or something that can concatenate cleanly with a
string). This turns out not to be the case with `IllegalMonthError`,
where it is an integer, so to avoid raising an erroneous `TypeError`, we
first convert the wrapped exception to a string.

See GH issue #981.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test_tzlocal_offset_equal[GMT-tzoff1]</title>
<updated>2019-11-03T00:30:44+00:00</updated>
<author>
<name>Kubilay Kocak</name>
<email>koobs@users.noreply.github.com</email>
</author>
<published>2019-06-25T02:30:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=38a5cd8486b08818c72e51efa8ca40151670bdeb'/>
<id>38a5cd8486b08818c72e51efa8ca40151670bdeb</id>
<content type='text'>
test_tzlocal_offset_equal[GMT-tzoff1] fails if a system does not
have a defined (installed) GMT timezone, for example if "Link Etc/GMT GMT"
is not defined in the zoneinfo configuration:

&gt;           assert tz.tzlocal() == tzoff
E           AssertionError: assert tzlocal() == tzoffset(u'GMT', 0)
E             -tzlocal()
E             +tzoffset(u'GMT', 0)

An example of such a configuration is FreeBSD, who's default timezone is
UTC [1][2]. This configuration results in any "non-present" or undefined TZ
name being returned/processed as the default timezone name (in FreeBSD's
case, UTC).

Further, POSIX does not recognize [3] TZ=GMT or TZ=UTC as valid values
because they neither start with a colon nor contain a numeric offset hour
field.

Accordingly, update the GMT value for this parametrized test to GMT0, a
specific (not aliased) timezone, making it more robust to system
configuration differences.

[1] https://svnweb.freebsd.org/changeset/base/130332
[2] https://svnweb.freebsd.org/changeset/base/199405
[3] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_tzlocal_offset_equal[GMT-tzoff1] fails if a system does not
have a defined (installed) GMT timezone, for example if "Link Etc/GMT GMT"
is not defined in the zoneinfo configuration:

&gt;           assert tz.tzlocal() == tzoff
E           AssertionError: assert tzlocal() == tzoffset(u'GMT', 0)
E             -tzlocal()
E             +tzoffset(u'GMT', 0)

An example of such a configuration is FreeBSD, who's default timezone is
UTC [1][2]. This configuration results in any "non-present" or undefined TZ
name being returned/processed as the default timezone name (in FreeBSD's
case, UTC).

Further, POSIX does not recognize [3] TZ=GMT or TZ=UTC as valid values
because they neither start with a colon nor contain a numeric offset hour
field.

Accordingly, update the GMT value for this parametrized test to GMT0, a
specific (not aliased) timezone, making it more robust to system
configuration differences.

[1] https://svnweb.freebsd.org/changeset/base/130332
[2] https://svnweb.freebsd.org/changeset/base/199405
[3] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
</pre>
</div>
</content>
</entry>
<entry>
<title>Auto-skip tests when TZ can't be changed.</title>
<updated>2019-11-02T15:46:54+00:00</updated>
<author>
<name>Alexander Shadchin</name>
<email>alexandr.shadchin@gmail.com</email>
</author>
<published>2019-02-27T14:49:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=154d391d5d6f8d3c2e5b086f833620a8e78e0097'/>
<id>154d391d5d6f8d3c2e5b086f833620a8e78e0097</id>
<content type='text'>
At the moment these tests are skipped ad-hoc in the test suite, but we
can use `pytest.skip` in the context manager itself to skip them
automatically and make things easier on ourselves.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At the moment these tests are skipped ad-hoc in the test suite, but we
can use `pytest.skip` in the context manager itself to skip them
automatically and make things easier on ourselves.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #935 from labrys/patch-1</title>
<updated>2019-11-02T15:46:18+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-11-02T15:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=c31392f853819b8e5db0d032f6d79aadb4100a2b'/>
<id>c31392f853819b8e5db0d032f6d79aadb4100a2b</id>
<content type='text'>
Fix error message for gettz when passed bytes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix error message for gettz when passed bytes</pre>
</div>
</content>
</entry>
<entry>
<title>Remove WarningTestMixin in favor of pytest.warns</title>
<updated>2019-11-02T15:10:14+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-11-02T15:06:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=13cce013d1534d114cb9bcaa5db3dbc35be27630'/>
<id>13cce013d1534d114cb9bcaa5db3dbc35be27630</id>
<content type='text'>
This was originally added when we were still supporting unittest-only
tests, but now that we require pytest, we can switch over to using the
built-in pytest.warns context manager.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was originally added when we were still supporting unittest-only
tests, but now that we require pytest, we can switch over to using the
built-in pytest.warns context manager.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for gettz zone supports startswith</title>
<updated>2019-11-02T15:01:07+00:00</updated>
<author>
<name>Labrys of Knossos</name>
<email>Labrys.git@gmail.com</email>
</author>
<published>2019-07-08T23:45:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=16bfee76aa13c1186d0f7150ee1a6c7651abd63e'/>
<id>16bfee76aa13c1186d0f7150ee1a6c7651abd63e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes for a potential Python 4 (#950)</title>
<updated>2019-08-27T15:24:34+00:00</updated>
<author>
<name>Hugo van Kemenade</name>
<email>hugovk@users.noreply.github.com</email>
</author>
<published>2019-08-27T15:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=2a2144814c3c11ebacc081dfd19dd25f3113a1bd'/>
<id>2a2144814c3c11ebacc081dfd19dd25f3113a1bd</id>
<content type='text'>
Changed compatibility logic to support a potential Python 4.0 release.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed compatibility logic to support a potential Python 4.0 release.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in comments and documentation</title>
<updated>2019-08-27T14:56:09+00:00</updated>
<author>
<name>Hugo</name>
<email>hugovk@users.noreply.github.com</email>
</author>
<published>2019-08-26T06:41:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=b7668eaf95bc1bddb02c6e377cfe21c65fccc4c6'/>
<id>b7668eaf95bc1bddb02c6e377cfe21c65fccc4c6</id>
<content type='text'>
Fixes several misspellings, typos and styling errors (e.g. github -&gt;
GitHub) in the comments and documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes several misspellings, typos and styling errors (e.g. github -&gt;
GitHub) in the comments and documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use tz.UTC in tests</title>
<updated>2019-04-23T17:54:57+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-04-23T17:33:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=0bfaa02c2dd396e563bd9343543874364e6b75bf'/>
<id>0bfaa02c2dd396e563bd9343543874364e6b75bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
