Commits

Anonymous committed ee07f05

[soc2010/test-refactor] Fixed @skipIfDBEngine to be more explicit

  • Participants
  • Parent commits 749e8df
  • Branches soc2010/test-refactor

Comments (0)

Files changed (1)

File django/test/utils.py

     """
     if not reason:
         reason = "not supported on this database"
-    return skipIf(settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] in engine,
-                  reason)
+    settings_engine = settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE']
+    if isinstance(engine, basestring):
+        return skipIf(settings_engine == engine, reason)
+    return skipIf(settings_engine in engine, reason)