Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit baf38e7

Browse files
committedAug 25, 2016
TWEAKS: preserve fill.numpy etc. after unpickling and uniform naming convention for tests
1 parent e681a63 commit baf38e7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎histogrammar/defs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ def __getstate__(self):
176176
del state["fill"]
177177
return state
178178

179+
def __setstate__(self, dict):
180+
self.__dict__ = dict
181+
self.fill = FillMethod(self, self.fill)
182+
179183
def copy(self):
180184
"""Copy this container, making a clone with no reference to the original. """
181185
return self + self.zero()

‎setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def finalize_options(self): pass
2727
def run(self):
2828
import sys, subprocess
2929
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
30-
args = ["-c", "import unittest; from test.basic import *; from test.testnumpy import *; from test.testrootcling import *; from test.testgpu import *; unittest.main()"]
30+
args = ["-c", "import unittest; from test.testbasic import *; from test.testnumpy import *; from test.testrootcling import *; from test.testgpu import *; unittest.main()"]
3131
else:
32-
args = ["-m", "unittest", "-v", "test.basic", "test.testnumpy", "test.testrootcling", "test.testgpu"]
32+
args = ["-m", "unittest", "-v", "test.testbasic", "test.testnumpy", "test.testrootcling", "test.testgpu"]
3333
raise SystemExit(subprocess.call([sys.executable] + args))
3434

3535
setup(name="Histogrammar",
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.