Skip to content

Commit fc1cf1c

Browse files
committed
uncomment pickle tests
1 parent d9814b8 commit fc1cf1c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

neo/test/coretest/test_analogsignal.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,8 +1717,6 @@ def test_concatenate_multi_signal(self):
17171717

17181718
class TestAnalogSignalFunctions(unittest.TestCase):
17191719

1720-
## someone with more pickle knowledge needs to work on this
1721-
"""
17221720
def test__pickle_1d(self):
17231721
signal1 = AnalogSignal(signal=[1, 2, 3, 4], sampling_period=1 * pq.ms, units=pq.S)
17241722
signal1.annotations["index"] = 2
@@ -1763,7 +1761,6 @@ def test__pickle_2d(self):
17631761
assert_neo_object_is_compliant(signal2)
17641762
fobj.close()
17651763
os.remove("./pickle")
1766-
"""
17671764

17681765
class TestAnalogSignalSampling(unittest.TestCase):
17691766
def test___get_sampling_rate__period_none_rate_none_ValueError(self):

neo/test/coretest/test_irregularysampledsignal.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,7 @@ def test_concatenate_array_annotations(self):
10331033

10341034

10351035
class TestAnalogSignalFunctions(unittest.TestCase):
1036-
# pickle help needed
1037-
"""
1036+
10381037
def test__pickle(self):
10391038
signal1 = IrregularlySampledSignal(np.arange(10.0) / 100 * pq.s, np.arange(10.0), units="mV")
10401039

@@ -1051,7 +1050,7 @@ def test__pickle(self):
10511050
assert_array_equal(signal1, signal2)
10521051
fobj.close()
10531052
os.remove("./pickle")
1054-
"""
1053+
10551054

10561055
class TestIrregularlySampledSignalEquality(unittest.TestCase):
10571056
def test__signals_with_different_times_should_be_not_equal(self):

0 commit comments

Comments
 (0)