1. shaib
  2. south


shaib  committed 6351fad

Fix typo in tests which is wrong in py2 and syntax error in py3

  • Participants
  • Parent commits 581e7db
  • Branches default

Comments (0)

Files changed (1)

File south/tests/db.py

View file
         # Test that it is pointing at the right table now
             non_user_id = db.execute("SELECT MAX(id) FROM auth_user")[0][0] + 1
-        except TypeError, IndexError:
+        except (TypeError, IndexError):
             # Got a "None" or no records, treat as 0
             non_user_id = 17
         db.execute("INSERT INTO test_fk_changed_target (eggs) VALUES (%s)", [non_user_id])