We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2179a commit a67b93fCopy full SHA for a67b93f
python/pyspark/testing/sqlutils.py
@@ -16,6 +16,7 @@
16
#
17
18
import datetime
19
+import math
20
import os
21
import shutil
22
import tempfile
@@ -246,7 +247,7 @@ def function(self, *functions):
246
247
@staticmethod
248
def assert_close(a, b):
249
c = [j[0] for j in b]
- diff = [abs(v - c[k]) < 1e-6 if v != math.inf else v == c[k]
250
+ diff = [abs(v - c[k]) < 1e-6 if not math.isinf(v) else v == c[k]
251
for k, v in enumerate(a)]
252
return sum(diff) == len(a)
253
0 commit comments