Bug 1138185 - perl-MooseX-Types-DateTime-ButMaintained-0.16-6.fc22 FTBFS: ''local' timezone worked' t/03_local_floating.t test fails
Summary: perl-MooseX-Types-DateTime-ButMaintained-0.16-6.fc22 FTBFS: ''local' timezone...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-MooseX-Types-DateTime-ButMaintained
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://koji.fedoraproject.org/koji/ta...
Whiteboard:
Depends On: 1135981
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-04 08:27 UTC by Petr Pisar
Modified: 2014-09-04 12:57 UTC (History)
3 users (show)

Fixed In Version: perl-MooseX-Types-DateTime-ButMaintained-0.16-7.fc22
Clone Of:
Environment:
Last Closed: 2014-09-04 12:57:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix (1.64 KB, patch)
2014-09-04 12:51 UTC, Petr Pisar
no flags Details | Diff

Description Petr Pisar 2014-09-04 08:27:46 UTC
perl-MooseX-Types-DateTime-ButMaintained-0.16-6.fc22 fails to build in rawhide because of issues with getting time zone name:

#   Failed test ''local' timezone worked'
#   at t/03_local_floating.t line 31.
# Looks like you failed 1 test of 3.
t/03_local_floating.t ....... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

This is caused probably by fix for bug #1135981.

Comment 1 Petr Pisar 2014-09-04 08:35:12 UTC
The failing test already checks for not working local time zone. One need to add another condition for zone name definition.

Comment 2 Petr Pisar 2014-09-04 12:00:46 UTC
Actually the problem is Moose type system checks for exact class name while doing coercion and because DateTime::TimeZone::Tzfile is not inherited from DateTime::TimeZone, the check fails.

Comment 3 Petr Pisar 2014-09-04 12:51:12 UTC
Created attachment 934401 [details]
Fix


Note You need to log in before you can comment on or make changes to this bug.