@@ -942,47 +942,36 @@ def test_notEqual(self):
942
942
943
943
def test_greater (self ):
944
944
assert self .february > self .january1
945
+ assert self .february > self .january1 .ordinal
945
946
946
947
def test_greater_Raises_Value (self ):
947
948
with pytest .raises (period .IncompatibleFrequency ):
948
949
self .january1 > self .day
949
950
950
- def test_greater_Raises_Type (self ):
951
- with pytest .raises (TypeError ):
952
- self .january1 > 1
953
-
954
951
def test_greaterEqual (self ):
955
952
assert self .january1 >= self .january2
953
+ assert self .january1 >= self .january2 .ordinal
956
954
957
955
def test_greaterEqual_Raises_Value (self ):
958
956
with pytest .raises (period .IncompatibleFrequency ):
959
957
self .january1 >= self .day
960
958
961
- with pytest .raises (TypeError ):
962
- print (self .january1 >= 1 )
963
-
964
959
def test_smallerEqual (self ):
965
960
assert self .january1 <= self .january2
961
+ assert self .january1 <= self .january2 .ordinal
966
962
967
963
def test_smallerEqual_Raises_Value (self ):
968
964
with pytest .raises (period .IncompatibleFrequency ):
969
965
self .january1 <= self .day
970
966
971
- def test_smallerEqual_Raises_Type (self ):
972
- with pytest .raises (TypeError ):
973
- self .january1 <= 1
974
-
975
967
def test_smaller (self ):
976
968
assert self .january1 < self .february
969
+ assert self .january1 < self .february .ordinal
977
970
978
971
def test_smaller_Raises_Value (self ):
979
972
with pytest .raises (period .IncompatibleFrequency ):
980
973
self .january1 < self .day
981
974
982
- def test_smaller_Raises_Type (self ):
983
- with pytest .raises (TypeError ):
984
- self .january1 < 1
985
-
986
975
def test_sort (self ):
987
976
periods = [self .march , self .january1 , self .february ]
988
977
correctPeriods = [self .january1 , self .february , self .march ]
0 commit comments