Commits

Olemis Lang  committed 043cd17

BH RPC : Require callable object in private version of assertRaises

  • Participants
  • Parent commits c2b7edc

Comments (0)

Files changed (1)

File trunk/tracrpc/tests/__init__.py

             #
             #global_env.config.set('components', 'tracrpc.*', 'enabled')
             #global_env.config.save()
-            
+
             # Enable components in product environment
             for component in self.get_enabled_components():
                 env.config.set('components', component, 'enabled')
                             self._testMethodName)
             log.info('=' * 70)
 
-        def failUnlessRaises(self, excClass, callableObj=None, *args, **kwargs):
+        def failUnlessRaises(self, excClass, callableObj, *args, **kwargs):
             """Enhanced assertions to detect exceptions."""
             try:
                 callableObj(*args, **kwargs)