From 46ae739823bc9d9c3a176f20058d65097c22cb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 18 May 2014 15:25:20 +0200 Subject: Fix test_deprecation test. --- tests/test_deprecation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_deprecation.py b/tests/test_deprecation.py index bad6104..a07cbf3 100644 --- a/tests/test_deprecation.py +++ b/tests/test_deprecation.py @@ -44,6 +44,6 @@ class DeprecationTests(unittest.TestCase): warning = w[0] # Message is indeed related to the current file # This is to ensure error messages are readable by end users. - self.assertEqual(__file__, warning.filename) + self.assertIn(warning.filename, __file__) self.assertIn('FACTORY_FOR', str(warning.message)) self.assertIn('model', str(warning.message)) -- cgit v1.2.3