Closed lwrubel closed 3 years ago
I believe the tests are failing because the line
self.assertEqual([('a', 1), ('b', 1)], self.stats.derivatives_stats(local_only=True))
in test_derivatives
(and the similar line in test_source_datasets
) is comparing two lists that have the same elements but in a different order. The output of the test seems to indicate that in the result of self.stats.derivatives_stats
, the tuple with 'b'
comes first.
A solution (using set equality) would be as follows:
self.assertEqual({('a', 1), ('b', 1)}, set(self.stats.derivatives_stats(local_only=True)))
Closing because issue fixed in #61.
Two tests failing.