Skip to content

Commit 65a608c

Browse files
committed
Ignore tz issue in test
1 parent 2cfd2d2 commit 65a608c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/format_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'double_col: double\n'
1010
'date_string_col: binary\n'
1111
'string_col: binary\n'
12-
'timestamp_col: timestamp[ns, tz=Asia/Shanghai]\n'
12+
'timestamp_col: timestamp[ns, tz=Etc/UTC]\n'
1313
'----\n'
1414
'id: [[0,1]]\n'
1515
'bool_col: [[1,0]]\n'
@@ -23,7 +23,7 @@
2323
'[[30312F30312F3039,30312F30312F3039]]\n'
2424
'string_col: [[30,31]]\n'
2525
'...',
26-
'len': 478},
26+
'len': 472},
2727
'BSONEachRow': {'data': b'\xcd\x00\x00\x00\x10id\x00\x00\x00\x00\x00\x10boo'
2828
b'l_col\x00\x01\x00\x00\x00\x10tinyint_col\x00\x00'
2929
b'\x00\x00\x00\x10smallint_col\x00\x00\x00\x00'

tests/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def test_output(self):
1818
data = reset_elapsed(f"{res}")
1919
else:
2020
data = reset_elapsed(res.get_memview().tobytes())
21-
self.assertAlmostEqual(len(data), output["len"])
2221
self.assertEqual(data, output["data"])
2322

2423

tests/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def reset_elapsed(input):
1515
input = input.decode()
1616
input = re.sub(r'("elapsed": )\d+\.\d+', r'\g<1>0.0', input)
1717
input = re.sub(r'(<elapsed>)\d+\.\d+(</elapsed>)', r'\g<1>0.0\g<2>', input)
18+
input = re.sub(r'(tz=).*]', r'\g<1>Etc/UTC]', input)
1819
input = input.replace('08:', '00:')
1920
except UnicodeDecodeError:
2021
pass

0 commit comments

Comments
 (0)