Commits

Carl Meyer  committed 5e86c1c

sort dependencies to avoid platform-dependent test failures

  • Participants
  • Parent commits ab02739

Comments (0)

Files changed (2)

File south/migration/base.py

 
         This list includes `self`, which will be applied last.
         """
-        return depends(self, lambda x: x.dependencies)
+        return depends(self, lambda x: sorted(x.dependencies))
 
     def _backwards_plan(self):
-        return depends(self, lambda x: x.dependents)
+        return depends(self, lambda x: sorted(x.dependents))
 
     def backwards_plan(self):
         """

File south/tests/logic.py

                           [self.deps_a['0001_a'],
                            self.deps_a['0002_a'],
                            self.deps_a['0003_a']],
-                          [self.deps_a['0001_a'],
+                          [self.deps_b['0001_b'],
+                           self.deps_a['0001_a'],
                            self.deps_a['0002_a'],
+                           self.deps_b['0002_b'],
                            self.deps_a['0003_a'],
-                           self.deps_b['0001_b'],
-                           self.deps_b['0002_b'],
                            self.deps_b['0003_b'],
                            self.deps_a['0004_a']],
-                          [self.deps_a['0001_a'],
+                          [self.deps_b['0001_b'],
+                           self.deps_a['0001_a'],
                            self.deps_a['0002_a'],
+                           self.deps_b['0002_b'],
                            self.deps_a['0003_a'],
-                           self.deps_b['0001_b'],
-                           self.deps_b['0002_b'],
                            self.deps_b['0003_b'],
                            self.deps_a['0004_a'],
                            self.deps_a['0005_a']]],