Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 357882 Details for
Bug 482034
www-apps/trac-1.0.1 - migrate to distutils-r1.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/trac-1.0.1-changeset_11816.diff
trac-1.0.1-changeset_11816.diff (text/plain), 1.67 KB, created by
Bertrand Jacquin
on 2013-09-04 22:22:26 UTC
(
hide
)
Description:
files/trac-1.0.1-changeset_11816.diff
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2013-09-04 22:22:26 UTC
Size:
1.67 KB
patch
obsolete
>------------------------------------------------------------------------ >r11816 | jomae | 2013-06-10 16:00:45 +0200 (Mon, 10 Jun 2013) | 2 lines > >1.0.2dev: merge [11814-11815] from 0.12-stable > > >Index: trac/util/tests/datefmt.py >=================================================================== >--- trac/util/tests/datefmt.py (revision 11815) >+++ trac/util/tests/datefmt.py (revision 11816) >@@ -523,6 +523,10 @@ > self.assertEqual(datefmt.to_datetime(23L, tz), expected) > self.assertEqual(datefmt.to_datetime(23.0, tz), expected) > >+ def test_to_datetime_typeerror(self): >+ self.assertRaises(TypeError, datefmt.to_datetime, 'blah') >+ self.assertRaises(TypeError, datefmt.to_datetime, u'bl\xe1h') >+ > def test_format_datetime_utc(self): > t = datetime.datetime(1970, 1, 1, 1, 0, 23, 0, datefmt.utc) > expected = '1970-01-01T01:00:23Z' >Index: trac/util/datefmt.py >=================================================================== >--- trac/util/datefmt.py (revision 11815) >+++ trac/util/datefmt.py (revision 11816) >@@ -94,6 +94,8 @@ > timedelta(seconds=frac + 1) > else: > dt = datetime.fromtimestamp(t, tz) >+ else: >+ dt = None > if dt: > return tz.normalize(dt) > raise TypeError('expecting datetime, int, long, float, or None; got %s' % >Index: . >=================================================================== >--- . (revision 11815) >+++ . (revision 11816) > >Property changes on: . >___________________________________________________________________ >Modified: svn:mergeinfo > Merged /branches/0.12-stable:r11814-11815 > >------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 482034
:
356648
|
356650
|
356652
|
357850
|
357858
|
357860
|
357862
|
357864
|
357866
|
357868
|
357870
|
357872
|
357874
|
357876
|
357878
|
357880
| 357882 |
357884
|
357886
|
357888
|
376934
|
377034
|
377036
|
377038