<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dateutil-git.git/dateutil/test/test_parser.py, 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>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>
<entry>
<title>Convert all parser raises tests to use ParserError</title>
<updated>2019-04-23T14:50:24+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-04-23T13:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=f764c8a91b8ed2eeeecbd0b6db4c0a33a350e22f'/>
<id>f764c8a91b8ed2eeeecbd0b6db4c0a33a350e22f</id>
<content type='text'>
ParserError is a subclass of ValueError, so this just makes the tests
stricter, and this can be considered a backwards-compatible change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ParserError is a subclass of ValueError, so this just makes the tests
stricter, and this can be considered a backwards-compatible change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Wrap ValueError in ParserError</title>
<updated>2019-04-23T14:50:23+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-04-23T12:54:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=31e8c66d76b1a53ab692decf4330b6b5706bf08c'/>
<id>31e8c66d76b1a53ab692decf4330b6b5706bf08c</id>
<content type='text'>
Ensures that ValueErrors raised when building the datetime from an
already-parsed string will be raised as ParserError as well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensures that ValueErrors raised when building the datetime from an
already-parsed string will be raised as ParserError as well.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add xfailing test for ParserError</title>
<updated>2019-04-23T14:50:23+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-04-23T12:41:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=3dc323bc6090cf487c6125239e70df36eebd2bd2'/>
<id>3dc323bc6090cf487c6125239e70df36eebd2bd2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for interpreting UTC as an integer offset</title>
<updated>2019-03-20T13:28:38+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-03-20T13:04:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=3a7f61913748158e3c9964d69047f4c0a32d3a1e'/>
<id>3a7f61913748158e3c9964d69047f4c0a32d3a1e</id>
<content type='text'>
Co-authored-by: Brock Mendel &lt;jbrockmendel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Brock Mendel &lt;jbrockmendel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use convenience function for testing tz object</title>
<updated>2019-03-20T13:28:38+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-03-19T13:40:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=b8bb468e852df2afdd12f20b6130c491408c3dd7'/>
<id>b8bb468e852df2afdd12f20b6130c491408c3dd7</id>
<content type='text'>
For all of these tests, the most important part of the test is ensuring
that the correct tzinfo object was attached, so it makes sense to add a
convenience function that asserts that they are identical *and* have the
same tzinfo object.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For all of these tests, the most important part of the test is ensuring
that the correct tzinfo object was attached, so it makes sense to add a
convenience function that asserts that they are identical *and* have the
same tzinfo object.
</pre>
</div>
</content>
</entry>
</feed>
