afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-09-12 11:10 am

[dw-free] Eliminate Class::Autouse from the code

[commit: http://hg.dwscoalition.org/dw-free/rev/731a3f34d14e]

http://bugs.dwscoalition.org/show_bug.cgi?id=1761

Eliminate Class::Autouse from test scripts.

Patch by [personal profile] szabgab.

Files modified:
  • t/betafeatures.t
  • t/notificationinbox.t
  • t/notificationmethod-email.t
  • t/notificationmethod-inbox.t
  • t/uniqcookie.t
--------------------------------------------------------------------------------
diff -r 2e80116e2336 -r 731a3f34d14e t/betafeatures.t
--- a/t/betafeatures.t	Sat Sep 12 05:52:45 2009 +0000
+++ b/t/betafeatures.t	Sat Sep 12 11:09:42 2009 +0000
@@ -6,7 +6,7 @@ require 'ljlib.pl';
 require 'ljlib.pl';
 require 'ljcapabilities.pl';
 use LJ::Test qw(temp_user);
-use Class::Autouse qw(LJ::BetaFeatures);
+use LJ::BetaFeatures;
 
 my $u = LJ::Test::temp_user();
 
diff -r 2e80116e2336 -r 731a3f34d14e t/notificationinbox.t
--- a/t/notificationinbox.t	Sat Sep 12 05:52:45 2009 +0000
+++ b/t/notificationinbox.t	Sat Sep 12 11:09:42 2009 +0000
@@ -15,12 +15,10 @@ plan skip_all => 'Fix this test! LJ/Even
 
 use LJ::Test qw(temp_user memcache_stress);
 
-use Class::Autouse qw(
-                      LJ::NotificationInbox
-                      LJ::NotificationItem
-                      LJ::Event
-                      );
-#                      LJ::Event::Befriended
+use LJ::NotificationInbox;
+use LJ::NotificationItem;
+use LJ::Event;
+#use LJ::Event::Befriended;
 
 my $u = temp_user();
 my $u2 = temp_user();
diff -r 2e80116e2336 -r 731a3f34d14e t/notificationmethod-email.t
--- a/t/notificationmethod-email.t	Sat Sep 12 05:52:45 2009 +0000
+++ b/t/notificationmethod-email.t	Sat Sep 12 11:09:42 2009 +0000
@@ -10,10 +10,8 @@ use LJ::Test qw(temp_user memcache_stres
 #plan tests =>;
 plan skip_all => 'Fix this test! LJ/Event/Befriended.pm is missing';
 
-use Class::Autouse qw(
-                      LJ::NotificationMethod::Email
-                      );
-#                      LJ::Event::Befriended
+use LJ::NotificationMethod::Email;
+#use LJ::Event::Befriended;
 
 my $u;
 my $valid_u = sub {
diff -r 2e80116e2336 -r 731a3f34d14e t/notificationmethod-inbox.t
--- a/t/notificationmethod-inbox.t	Sat Sep 12 05:52:45 2009 +0000
+++ b/t/notificationmethod-inbox.t	Sat Sep 12 11:09:42 2009 +0000
@@ -10,10 +10,8 @@ use LJ::Test qw(temp_user memcache_stres
 #plan tests =>;
 plan skip_all => 'Fix this test! LJ/Event/Befriended.pm is missing';
 
-use Class::Autouse qw(
-                      LJ::NotificationMethod::Inbox
-                      );
-#                      LJ::Event::Befriended
+use LJ::NotificationMethod::Inbox;
+#use LJ::Event::Befriended;
 
 my $u;
 my $valid_u = sub {
diff -r 2e80116e2336 -r 731a3f34d14e t/uniqcookie.t
--- a/t/uniqcookie.t	Sat Sep 12 05:52:45 2009 +0000
+++ b/t/uniqcookie.t	Sat Sep 12 11:09:42 2009 +0000
@@ -5,7 +5,7 @@ use lib "$ENV{LJHOME}/cgi-bin";
 use lib "$ENV{LJHOME}/cgi-bin";
 require 'ljlib.pl';
 use LJ::Test qw(temp_user memcache_stress);
-use Class::Autouse qw(LJ::UniqCookie);
+use LJ::UniqCookie;
 
 sub run_tests {
     my $class = "LJ::UniqCookie";
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org