aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 15:25:20 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 15:25:20 +0200
commit46ae739823bc9d9c3a176f20058d65097c22cb66 (patch)
tree76d99620616962e33a6541550cebdfaa3e461cb7
parent3d7a00d1c5cafe37e49a716c8ae075e984b3111a (diff)
downloadfactory-boy-46ae739823bc9d9c3a176f20058d65097c22cb66.tar
factory-boy-46ae739823bc9d9c3a176f20058d65097c22cb66.tar.gz
Fix test_deprecation test.
-rw-r--r--tests/test_deprecation.py2
1 files changed, 1 insertions, 1 deletions
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))