Skip to content

Commit 6857ce7

Browse files
committed
add why
1 parent 7cd0d18 commit 6857ce7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_bson.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,8 @@ def test_exception_wrapping(self):
10451045

10461046
def test_minkey_maxkey_comparison(self):
10471047
# MinKey's <, <=, >, >=, !=, and ==.
1048-
# These tests should be kept as assertTrue as opposed to using unittest's build in comparison assertions.
1048+
# These tests should be kept as assertTrue as opposed to using unittest's build in comparison assertions because
1049+
# MinKey and MaxKey define their own __ge__, __le__, etc to be different and we want to explicitly test that.
10491050
self.assertTrue(MinKey() < None)
10501051
self.assertTrue(MinKey() < 1)
10511052
self.assertTrue(MinKey() <= 1)

0 commit comments

Comments
 (0)