Commits

Shlomi Fish committed e39bf83

Fix the problem with the implicitly required Test::Exception.

Removed its use. Fixes https://rt.cpan.org/Ticket/Display.html?id=77139
(RT #77139).

Comments (0)

Files changed (3)

Statistics-Descriptive/Changes

 Revision history for Perl extension Statistics::Descriptive.
 
-3.0600      May 11, 2012    
+3.0601      May 11, 2012
+    - No longer using Test::Exception in the tests.
+        - It was used by the tests and not specified in 
+        test_requires/build_requires.
+        - Thanks to hsk@fli-leibniz.de for the report.
+
+3.0600      May 11, 2012
     - Add the smoothing functionality.
         - Add the following public methods: add_data_with_samples(), 
         set_smoother(), get_smoothed_data() to the main module.

Statistics-Descriptive/t/descr_smooth_methods.t

 use warnings;
 
 use Test::More tests => 3;
-use Test::Exception;
 
 use Statistics::Descriptive;
 

Statistics-Descriptive/t/smoother.t

 use Test::More tests => 11;
 
 use Statistics::Descriptive::Smoother;
-use Test::Exception;
 
 local $SIG{__WARN__} = sub { };
 
 {
 
     # Test invalid smoothing method
-    # TEST
-    dies_ok (sub {
+    eval
+    {
                 Statistics::Descriptive::Smoother->instantiate({
                         method   => 'invalid_method',
                         coeff    => 0,
                         data     => [1,2,3],
                         samples  => [100, 100, 100],
-            });}, 
-            'Invalid method');
-    
+            });
+    };
+
+    # TEST
+    ok ($@, 'Invalid method');
+
 }
 
 {