Skip to content

Commit 0cb4bcf

Browse files
authored
OpenHTF data module's convert_to_base_types() now actually leaves uni… (#769)
* OpenHTF data module's convert_to_base_types() now actually leaves unicode types alone like its doc string suggests. I ran into this issue when trying to reprocess a test run that had unicode characters in a measurement's unit's "suffix" field. It's reproducible within this fix using the following command: ./blaze-bin/third_party/car/laser/gbr/v3/testers/amplifier_calibration/amplifier_calibrator_reprocess --dut-serial=QCAG01809300010 --reprocess=QQABUUNBRzAxODA5MzAwMDEwAAEGAWL9ry8k --local=1 calibrate_gbr RELNOTES: PiperOrigin-RevId: 194878170 * re-removing history.py
1 parent 14bec09 commit 0cb4bcf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openhtf/util/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030

3131
from mutablerecords import records
3232
from past.builtins import long
33+
from past.builtins import unicode
3334

3435
from enum import Enum
3536
import six
3637

3738
# Used by convert_to_base_types().
38-
PASSTHROUGH_TYPES = {bool, bytes, int, long, type(None), str}
39+
PASSTHROUGH_TYPES = {bool, bytes, int, long, type(None), unicode}
3940

4041

4142
def pprint_diff(first, second, first_name='first', second_name='second'):

0 commit comments

Comments
 (0)