summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-08-13 14:05:40 +0200
committerNicholas Clark <nick@ccl4.org>2011-08-13 14:05:40 +0200
commitc3e4944bf469511ce80e004c04f2c9b15ebaf43b (patch)
treee1db903d5a0c7a7d27eafe2dbd4517e1c269a0ae
parent135c0b08fa622fdfc35bb98fe891d70f59a7a3af (diff)
downloadperl-c3e4944bf469511ce80e004c04f2c9b15ebaf43b.tar.gz
Check more than just the first word of the "Inconsistent C3" error message.
-rw-r--r--t/mro/inconsistent_c3.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/mro/inconsistent_c3.t b/t/mro/inconsistent_c3.t
index 68d37950d4..ae01e9fdf2 100644
--- a/t/mro/inconsistent_c3.t
+++ b/t/mro/inconsistent_c3.t
@@ -46,4 +46,5 @@ except TypeError:
}
eval { mro::get_linear_isa('Z', 'c3') };
-like($@, qr/^Inconsistent /, '... got the right error with an inconsistent hierarchy');
+like($@, qr/^Inconsistent hierarchy during C3 merge of class 'Z'/,
+ '... got the right error with an inconsistent hierarchy');