Shlomi Fish avatar Shlomi Fish committed b032b5d

Get rid of a broken test (at least with recent libxml2s).

- Got rid of a broken test (at least with recent libxml2s) in
t/03doc.t :
- https://rt.cpan.org/Ticket/Display.html?id=75403
- The problem was that the test tested for an undefined XML
namespace, a behaviour which was changed in a recent libxml2
release.
- Thanks to vcizek for the report.

Comments (0)

Files changed (1)

 use warnings;
 
 # Should be 168.
-use Test::More tests => 168;
+use Test::More tests => 167;
 
 use XML::LibXML;
 use XML::LibXML::Common qw(:libxml);
             # TEST
             _count_local_name($doc2, 'A', 3, q{3 As});
         }
+=begin taken_out
+        # This was taken out because the XML uses an undefined namespace.
+        # I don't know why this test was introduced in the first place,
+        # but it fails now 
+        #
+        # This test fails in this bug report - 
+        # https://rt.cpan.org/Ticket/Display.html?id=75403
+        # -- Shlomi Fish
         {
             $parser2->recover(1);
             local $SIG{'__WARN__'} = sub { 
                   print "warning caught: @_\n";
             }; 
-            my $doc2 = $parser2->parse_string($string4);
-            # TEST
-            _count_local_name( $doc2, 'A', 3, q{3 As});
+            # my $doc2 = $parser2->parse_string($string4);
+            #-TEST
+            # _count_local_name( $doc2, 'A', 3, q{3 As});
         }
+=end taken_out
+
+=cut
         {
             my $doc2 = $parser2->parse_string($string5);
             # TEST
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.