Skip to content

Commit

Permalink
Revert "Add a hideous hack to avoid breaking existing Moose tests"
Browse files Browse the repository at this point in the history
This reverts commit 7d32c7e.
  • Loading branch information
vitlav authored and autarch committed Aug 21, 2021
1 parent 09460c1 commit 7fdd0bc
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions lib/Specio/Declare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,6 @@ our @EXPORT = qw(
sub import {
my $package = shift;

# What the heck is this monstrosity?
#
# Moose version 2.0901 included a first pass at support for Specio. This
# was based on Specio c. 0.06 when Specio itself still used
# Moose. Unfortunately, recent changes to Specio broke this support and
# the Moose core needs updating.
#
# However, stable versions of Moose have since shipped with a test that
# attempts to test itself with Specio 0.07+. This was fine until I wanted
# to release a non-TRIAL Specio.
#
# Once that's out, anyone installing Specio will cause future attempts to
# install Moose to fail until Moose includes updated Specio support!
# Breaking Moose is not acceptable, thus this mess.
#
# Note that since Moose 2.1207 this test was renamed and the Specio tests
# actually run (and pass). We still need to leave this in here for quite
# some time. People should be able to install Specio and then install an
# older Moose indefinitely (or at least for a year or two).
if ( $ENV{HARNESS_ACTIVE}
&& $0 =~ m{t[\\/]type_constraints[\\/]specio\.t$} ) {

require Test::More;
Test::More::plan( skip_all =>
'These tests will not pass with this version of Specio' );
exit 0;
}

my $caller = caller();

$package->export_to_level( 1, $package, @_ );
Expand Down

0 comments on commit 7fdd0bc

Please sign in to comment.