From df0b1124cbb9f244dc40f435410ec16462a8fc9b Mon Sep 17 00:00:00 2001 From: Raphaël Barrois Date: Thu, 16 Aug 2012 19:01:07 +0200 Subject: Mark automatic associated class discovery as deprecated. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also improve warning reporting. Signed-off-by: Raphaël Barrois --- factory/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory/base.py') diff --git a/factory/base.py b/factory/base.py index c1dbd98..8ff6151 100644 --- a/factory/base.py +++ b/factory/base.py @@ -182,7 +182,7 @@ class FactoryMetaClass(BaseFactoryMetaClass): FACTORY_CLASS_DECLARATION, associated_name, class_name, - ), PendingDeprecationWarning) + ), DeprecationWarning, 3) return getattr(factory_module, associated_name) -- cgit v1.2.3