def test_get_ancestors_no_update(self):
        """Testing FileDiff.get_ancestors without caching"""
        ancestors = {}

        for filediff in self.filediffs:
            with self.assertNumQueries(0):
                ancestors[filediff] = filediff.get_ancestors(
                    minimal=True,
                    filediffs=self.filediffs,
                    update=False)

        self._check_ancestors(ancestors, minimal=True)