File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ def requires_IEEE_754(test): return test
41
41
F = quicktions .Fraction
42
42
gcd = quicktions ._gcd
43
43
44
+ requires_py310 = unittest .skipIf (sys .version_info <= (3 , 10 ), "needs Python 3.10+" )
45
+
44
46
#locate file with float format test values
45
47
test_dir = os .path .dirname (__file__ ) or os .curdir
46
48
format_testfile = os .path .join (test_dir , 'formatfloat_testcases.txt' )
@@ -1860,6 +1862,7 @@ def test_float_format_testfile(self):
1860
1862
self .assertEqual (float (format (f , fmt2 )), float (rhs ))
1861
1863
self .assertEqual (float (format (- f , fmt2 )), float ('-' + rhs ))
1862
1864
1865
+ @requires_py310
1863
1866
def test_complex_handling (self ):
1864
1867
# See issue gh-102840 for more details.
1865
1868
@@ -1887,6 +1890,7 @@ def test_complex_handling(self):
1887
1890
message % ("divmod()" , "complex" , "quicktions.Fraction" ),
1888
1891
divmod , b , a )
1889
1892
1893
+ @requires_py310
1890
1894
def test_three_argument_pow (self ):
1891
1895
message = "unsupported operand type(s) for ** or pow(): '%s', '%s', '%s'"
1892
1896
self .assertRaisesMessage (TypeError ,
You can’t perform that action at this time.
0 commit comments