From 0bddec5c1c7b9594f31354b1545b8b07fdd1a16d Mon Sep 17 00:00:00 2001 From: Sebastian Castillo Hair Date: Sat, 13 Jun 2020 11:34:06 -0700 Subject: [PATCH] Added channel_labels to TestFCSDataPickle. --- test/test_io.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test/test_io.py b/test/test_io.py index 6ca0978..c6a84e4 100644 --- a/test/test_io.py +++ b/test/test_io.py @@ -2718,10 +2718,21 @@ def test_pickle_unpickle(self): loaded_attrs = set(dir(test_fcs)) self.assertEqual(attrs, loaded_attrs) # Check contents of attrs affected by pickling - pickle_sensitive_attrs = ['_resolution', '_range', '_amplifier_gain', - '_detector_voltage', '_amplification_type', '_channels', - '_acquisition_end_time', '_acquisition_start_time', '_time_step', - '_data_type', '_analysis', '_text', '_infile'] + pickle_sensitive_attrs = [ + '_resolution', + '_range', + '_amplifier_gain', + '_channel_labels', + '_detector_voltage', + '_amplification_type', + '_channels', + '_acquisition_end_time', + '_acquisition_start_time', + '_time_step', + '_data_type', + '_analysis', + '_text', + '_infile'] # Also test computed (property) attrs computed_attrs = [ 'infile', @@ -2739,6 +2750,7 @@ def test_pickle_unpickle(self): 'amplification_type', 'detector_voltage', 'amplifier_gain', + 'channel_labels', 'range', 'resolution', 'hist_bins',