File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 '
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 \x10 id\x00 \x00 \x00 \x00 \x00 \x10 boo'
2828 b'l_col\x00 \x01 \x00 \x00 \x00 \x10 tinyint_col\x00 \x00 '
2929 b'\x00 \x00 \x00 \x10 smallint_col\x00 \x00 \x00 \x00 '
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments