Make $SIG{__WARN__} overrides more Carp::Always friendly
[dbsrgits/DBIx-Class.git] / t / inflate / datetime.t
index fe35c0e..7062563 100644 (file)
@@ -8,7 +8,7 @@ use lib qw(t/lib);
 use DBICTest;
 
 # so user's env doesn't screw us
-undef $ENV{DBIC_DT_SEARCH_OK};
+delete $ENV{DBIC_DT_SEARCH_OK};
 
 my $schema = DBICTest->init_schema();
 
@@ -42,8 +42,9 @@ warnings_exist {
 } [$dt_warn_re],
   'using a DateTime object in ->search generates a warning';
 
-TODO: {
-  local $TODO = "We can't do this yet before 0.09" if DBIx::Class->VERSION < 0.09;
+{
+  local $TODO = "This stuff won't work without a -dt operator of some sort"
+    unless eval { require DBIx::Class::SQLMaker::DateOps };
 
   is(eval { $row->id }, 1, 'DT in search');