Created
August 12, 2022 14:24
-
-
Save MaxGhenis/b0eb890232363ed30efc1be505e1f257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(py37) maxghenis@Maxs-MacBook-Pro openfisca-us % make test | |
pytest openfisca_us/tests/ --maxfail=0 | |
==================================================== test session starts ===================================================== | |
platform darwin -- Python 3.7.11, pytest-5.4.3, py-1.11.0, pluggy-0.13.1 | |
rootdir: /Users/maxghenis/PolicyEngine/openfisca-us, inifile: setup.cfg | |
plugins: anyio-3.5.0, dependency-0.5.1 | |
collected 957 items | |
openfisca_us/tests/test_variables.py ................................................................................. [ 8%] | |
...................................................................................................................... [ 20%] | |
...................................................................................................................... [ 33%] | |
...................................................................................................................... [ 45%] | |
...................................................................................................................... [ 57%] | |
...................................................................................................................... [ 70%] | |
...................................................................................................................... [ 82%] | |
...................................................................................................................... [ 94%] | |
....................................... [ 98%] | |
openfisca_us/tests/code_health/parameters.py . [ 98%] | |
openfisca_us/tests/code_health/variable_names.py . [ 99%] | |
openfisca_us/tests/microsimulation/test_against_taxsim.py EE [ 99%] | |
openfisca_us/tests/microsimulation/test_microsim.py . [ 99%] | |
openfisca_us/tests/microsimulation/data/test_imports.py .. [ 99%] | |
openfisca_us/tests/microsimulation/data/acs/test_acs.py ss [ 99%] | |
openfisca_us/tests/microsimulation/data/cps/test_cps.py .. [100%] | |
=========================================================== ERRORS =========================================================== | |
_____________________________________ ERROR at setup of test_federal_tax_against_taxsim ______________________________________ | |
@pytest.fixture(scope="module") | |
def taxsim(): | |
taxsim = TaxSim35() | |
yield taxsim.generate_from_microsimulation( | |
> CPS, 2022, None, True, False | |
).set_index("taxsim_taxsimid") | |
taxsim = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
openfisca_us/tests/microsimulation/test_against_taxsim.py:26: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
openfisca_us/tools/dev/taxsim/generate_taxsim_tests.py:210: in generate_from_microsimulation | |
taxsim_df = self.calculate(input_df).reset_index(drop=True) | |
dataset = <openfisca_us.data.datasets.cps.cps.CPS object at 0x7fcca1824f90> | |
drop_zeros = False | |
full_input_df = taxsim_taxsimid taxsim_year taxsim_state ... taxsim_pprofinc taxsim_sbusinc taxsim_sprofinc | |
0 ... 9075901 2022 0.0 ... 0.0 0.0 0.0 | |
[84172 rows x 31 columns] | |
input_df = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
number = None | |
openfisca_named_taxsim_input_variables = ['taxsim_taxsimid', 'taxsim_year', 'taxsim_state', 'taxsim_mstat', 'taxsim_page', 'taxsim_sage', ...] | |
openfisca_named_taxsim_output_variables = ['taxsim_fiitax', 'taxsim_siitax'] | |
return_dataframe = True | |
self = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
sim = <openfisca_us.api.microsimulation.Microsimulation object at 0x7fcca5ce3fd0> | |
system = <openfisca_us.system.CountryTaxBenefitSystem object at 0x7fccd5126e50> | |
variable = 'mortgage' | |
year = 2022 | |
openfisca_us/tools/dev/taxsim/generate_taxsim_tests.py:149: in calculate | |
stdout=subprocess.PIPE, | |
input_csv = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
input_csv_text = 'taxsimid,year,state,mstat,page,sage,depx,age1,age2,age3,dep13,dep17,dep18,pwages,swages,psemp,ssemp,dividends,intrec,...,0,0,0,0.0,0.0,0.0,0.0,43000.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,8000.0,0.0,8792.0,0.0,0.0,0.0,0.0,0.0,0.0,2,0,0,0,0,0,0,0\n' | |
input_data = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
self = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
../../opt/anaconda3/envs/py37/lib/python3.7/subprocess.py:800: in __init__ | |
restore_signals, start_new_session) | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
bufsize = -1 | |
c2pread = 15 | |
c2pwrite = 16 | |
close_fds = True | |
creationflags = 0 | |
cwd = None | |
encoding = None | |
env = None | |
errors = None | |
errread = -1 | |
errwrite = -1 | |
executable = None | |
f = <_io.BufferedReader name=15> | |
p2cread = 13 | |
p2cwrite = 14 | |
pass_fds = () | |
preexec_fn = None | |
restore_signals = True | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
shell = False | |
start_new_session = False | |
startupinfo = None | |
stderr = None | |
stdin = -1 | |
stdout = -1 | |
text = None | |
universal_newlines = None | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
executable = b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe', preexec_fn = None | |
close_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 13 | |
p2cwrite = 14, c2pread = 15, c2pwrite = 16, errread = -1, errwrite = -1, restore_signals = True, start_new_session = False | |
def _execute_child(self, args, executable, preexec_fn, close_fds, | |
pass_fds, cwd, env, | |
startupinfo, creationflags, shell, | |
p2cread, p2cwrite, | |
c2pread, c2pwrite, | |
errread, errwrite, | |
restore_signals, start_new_session): | |
"""Execute program (POSIX version)""" | |
if isinstance(args, (str, bytes)): | |
args = [args] | |
else: | |
args = list(args) | |
if shell: | |
# On Android the default shell is at '/system/bin/sh'. | |
unix_shell = ('/system/bin/sh' if | |
hasattr(sys, 'getandroidapilevel') else '/bin/sh') | |
args = [unix_shell, "-c"] + args | |
if executable: | |
args[0] = executable | |
if executable is None: | |
executable = args[0] | |
orig_executable = executable | |
# For transferring possible exec failure from child to parent. | |
# Data format: "exception name:hex errno:description" | |
# Pickle is not used; it is complex and involves memory allocation. | |
errpipe_read, errpipe_write = os.pipe() | |
# errpipe_write must not be in the standard io 0, 1, or 2 fd range. | |
low_fds_to_close = [] | |
while errpipe_write < 3: | |
low_fds_to_close.append(errpipe_write) | |
errpipe_write = os.dup(errpipe_write) | |
for low_fd in low_fds_to_close: | |
os.close(low_fd) | |
try: | |
try: | |
# We must avoid complex work that could involve | |
# malloc or free in the child process to avoid | |
# potential deadlocks, thus we do all this here. | |
# and pass it to fork_exec() | |
if env is not None: | |
env_list = [] | |
for k, v in env.items(): | |
k = os.fsencode(k) | |
if b'=' in k: | |
raise ValueError("illegal environment variable name") | |
env_list.append(k + b'=' + os.fsencode(v)) | |
else: | |
env_list = None # Use execv instead of execve. | |
executable = os.fsencode(executable) | |
if os.path.dirname(executable): | |
executable_list = (executable,) | |
else: | |
# This matches the behavior of os._execvpe(). | |
executable_list = tuple( | |
os.path.join(os.fsencode(dir), executable) | |
for dir in os.get_exec_path(env)) | |
fds_to_keep = set(pass_fds) | |
fds_to_keep.add(errpipe_write) | |
self.pid = _posixsubprocess.fork_exec( | |
args, executable_list, | |
close_fds, tuple(sorted(map(int, fds_to_keep))), | |
cwd, env_list, | |
p2cread, p2cwrite, c2pread, c2pwrite, | |
errread, errwrite, | |
errpipe_read, errpipe_write, | |
restore_signals, start_new_session, preexec_fn) | |
self._child_created = True | |
finally: | |
# be sure the FD is closed no matter what | |
os.close(errpipe_write) | |
# self._devnull is not always defined. | |
devnull_fd = getattr(self, '_devnull', None) | |
if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: | |
os.close(p2cread) | |
if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: | |
os.close(c2pwrite) | |
if errwrite != -1 and errread != -1 and errwrite != devnull_fd: | |
os.close(errwrite) | |
if devnull_fd is not None: | |
os.close(devnull_fd) | |
# Prevent a double close of these fds from __init__ on error. | |
self._closed_child_pipe_fds = True | |
# Wait for exec to fail or succeed; possibly raising an | |
# exception (limited in size) | |
errpipe_data = bytearray() | |
while True: | |
part = os.read(errpipe_read, 50000) | |
errpipe_data += part | |
if not part or len(errpipe_data) > 50000: | |
break | |
finally: | |
# be sure the FD is closed no matter what | |
os.close(errpipe_read) | |
if errpipe_data: | |
try: | |
pid, sts = os.waitpid(self.pid, 0) | |
if pid == self.pid: | |
self._handle_exitstatus(sts) | |
else: | |
self.returncode = sys.maxsize | |
except ChildProcessError: | |
pass | |
try: | |
exception_name, hex_errno, err_msg = ( | |
errpipe_data.split(b':', 2)) | |
# The encoding here should match the encoding | |
# written in by the subprocess implementations | |
# like _posixsubprocess | |
err_msg = err_msg.decode() | |
except ValueError: | |
exception_name = b'SubprocessError' | |
hex_errno = b'0' | |
err_msg = 'Bad exception data from child: {!r}'.format( | |
bytes(errpipe_data)) | |
child_exception_type = getattr( | |
builtins, exception_name.decode('ascii'), | |
SubprocessError) | |
if issubclass(child_exception_type, OSError) and hex_errno: | |
errno_num = int(hex_errno, 16) | |
child_exec_never_called = (err_msg == "noexec") | |
if child_exec_never_called: | |
err_msg = "" | |
# The error must be from chdir(cwd). | |
err_filename = cwd | |
else: | |
err_filename = orig_executable | |
if errno_num != 0: | |
err_msg = os.strerror(errno_num) | |
if errno_num == errno.ENOENT: | |
err_msg += ': ' + repr(err_filename) | |
> raise child_exception_type(errno_num, err_msg, err_filename) | |
E OSError: [Errno 8] Exec format error: '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
c2pread = 15 | |
c2pwrite = 16 | |
child_exception_type = <class 'OSError'> | |
child_exec_never_called = False | |
close_fds = True | |
creationflags = 0 | |
cwd = None | |
devnull_fd = None | |
env = None | |
env_list = None | |
err_filename = '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
err_msg = 'Exec format error' | |
errno_num = 8 | |
errpipe_data = bytearray(b'OSError:8:') | |
errpipe_read = 17 | |
errpipe_write = 18 | |
errread = -1 | |
errwrite = -1 | |
exception_name = bytearray(b'OSError') | |
executable = b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
executable_list = (b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe',) | |
fds_to_keep = {18} | |
hex_errno = bytearray(b'8') | |
low_fds_to_close = [] | |
orig_executable = '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
p2cread = 13 | |
p2cwrite = 14 | |
part = b'' | |
pass_fds = () | |
pid = 76024 | |
preexec_fn = None | |
restore_signals = True | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
shell = False | |
start_new_session = False | |
startupinfo = None | |
sts = 65280 | |
../../opt/anaconda3/envs/py37/lib/python3.7/subprocess.py:1551: OSError | |
_________________________________ ERROR at setup of test_state_income_tax_against_taxsim[MA] _________________________________ | |
@pytest.fixture(scope="module") | |
def taxsim(): | |
taxsim = TaxSim35() | |
yield taxsim.generate_from_microsimulation( | |
> CPS, 2022, None, True, False | |
).set_index("taxsim_taxsimid") | |
taxsim = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
openfisca_us/tests/microsimulation/test_against_taxsim.py:26: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
openfisca_us/tools/dev/taxsim/generate_taxsim_tests.py:210: in generate_from_microsimulation | |
taxsim_df = self.calculate(input_df).reset_index(drop=True) | |
dataset = <openfisca_us.data.datasets.cps.cps.CPS object at 0x7fcca1824f90> | |
drop_zeros = False | |
full_input_df = taxsim_taxsimid taxsim_year taxsim_state ... taxsim_pprofinc taxsim_sbusinc taxsim_sprofinc | |
0 ... 9075901 2022 0.0 ... 0.0 0.0 0.0 | |
[84172 rows x 31 columns] | |
input_df = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
number = None | |
openfisca_named_taxsim_input_variables = ['taxsim_taxsimid', 'taxsim_year', 'taxsim_state', 'taxsim_mstat', 'taxsim_page', 'taxsim_sage', ...] | |
openfisca_named_taxsim_output_variables = ['taxsim_fiitax', 'taxsim_siitax'] | |
return_dataframe = True | |
self = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
sim = <openfisca_us.api.microsimulation.Microsimulation object at 0x7fcca5ce3fd0> | |
system = <openfisca_us.system.CountryTaxBenefitSystem object at 0x7fccd5126e50> | |
variable = 'mortgage' | |
year = 2022 | |
openfisca_us/tools/dev/taxsim/generate_taxsim_tests.py:149: in calculate | |
stdout=subprocess.PIPE, | |
input_csv = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
input_csv_text = 'taxsimid,year,state,mstat,page,sage,depx,age1,age2,age3,dep13,dep17,dep18,pwages,swages,psemp,ssemp,dividends,intrec,...,0,0,0,0.0,0.0,0.0,0.0,43000.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,8000.0,0.0,8792.0,0.0,0.0,0.0,0.0,0.0,0.0,2,0,0,0,0,0,0,0\n' | |
input_data = taxsimid year state mstat page sage depx ... otherprop nonprop transfers rentpaid proptax otherite... 55 52 0 ... 0 0 0 0 0 0 0 | |
[84172 rows x 39 columns] | |
self = <openfisca_us.tools.dev.taxsim.generate_taxsim_tests.TaxSim35 object at 0x7fcca6134c10> | |
../../opt/anaconda3/envs/py37/lib/python3.7/subprocess.py:800: in __init__ | |
restore_signals, start_new_session) | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
bufsize = -1 | |
c2pread = 15 | |
c2pwrite = 16 | |
close_fds = True | |
creationflags = 0 | |
cwd = None | |
encoding = None | |
env = None | |
errors = None | |
errread = -1 | |
errwrite = -1 | |
executable = None | |
f = <_io.BufferedReader name=15> | |
p2cread = 13 | |
p2cwrite = 14 | |
pass_fds = () | |
preexec_fn = None | |
restore_signals = True | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
shell = False | |
start_new_session = False | |
startupinfo = None | |
stderr = None | |
stdin = -1 | |
stdout = -1 | |
text = None | |
universal_newlines = None | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
executable = b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe', preexec_fn = None | |
close_fds = True, pass_fds = (), cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 13 | |
p2cwrite = 14, c2pread = 15, c2pwrite = 16, errread = -1, errwrite = -1, restore_signals = True, start_new_session = False | |
def _execute_child(self, args, executable, preexec_fn, close_fds, | |
pass_fds, cwd, env, | |
startupinfo, creationflags, shell, | |
p2cread, p2cwrite, | |
c2pread, c2pwrite, | |
errread, errwrite, | |
restore_signals, start_new_session): | |
"""Execute program (POSIX version)""" | |
if isinstance(args, (str, bytes)): | |
args = [args] | |
else: | |
args = list(args) | |
if shell: | |
# On Android the default shell is at '/system/bin/sh'. | |
unix_shell = ('/system/bin/sh' if | |
hasattr(sys, 'getandroidapilevel') else '/bin/sh') | |
args = [unix_shell, "-c"] + args | |
if executable: | |
args[0] = executable | |
if executable is None: | |
executable = args[0] | |
orig_executable = executable | |
# For transferring possible exec failure from child to parent. | |
# Data format: "exception name:hex errno:description" | |
# Pickle is not used; it is complex and involves memory allocation. | |
errpipe_read, errpipe_write = os.pipe() | |
# errpipe_write must not be in the standard io 0, 1, or 2 fd range. | |
low_fds_to_close = [] | |
while errpipe_write < 3: | |
low_fds_to_close.append(errpipe_write) | |
errpipe_write = os.dup(errpipe_write) | |
for low_fd in low_fds_to_close: | |
os.close(low_fd) | |
try: | |
try: | |
# We must avoid complex work that could involve | |
# malloc or free in the child process to avoid | |
# potential deadlocks, thus we do all this here. | |
# and pass it to fork_exec() | |
if env is not None: | |
env_list = [] | |
for k, v in env.items(): | |
k = os.fsencode(k) | |
if b'=' in k: | |
raise ValueError("illegal environment variable name") | |
env_list.append(k + b'=' + os.fsencode(v)) | |
else: | |
env_list = None # Use execv instead of execve. | |
executable = os.fsencode(executable) | |
if os.path.dirname(executable): | |
executable_list = (executable,) | |
else: | |
# This matches the behavior of os._execvpe(). | |
executable_list = tuple( | |
os.path.join(os.fsencode(dir), executable) | |
for dir in os.get_exec_path(env)) | |
fds_to_keep = set(pass_fds) | |
fds_to_keep.add(errpipe_write) | |
self.pid = _posixsubprocess.fork_exec( | |
args, executable_list, | |
close_fds, tuple(sorted(map(int, fds_to_keep))), | |
cwd, env_list, | |
p2cread, p2cwrite, c2pread, c2pwrite, | |
errread, errwrite, | |
errpipe_read, errpipe_write, | |
restore_signals, start_new_session, preexec_fn) | |
self._child_created = True | |
finally: | |
# be sure the FD is closed no matter what | |
os.close(errpipe_write) | |
# self._devnull is not always defined. | |
devnull_fd = getattr(self, '_devnull', None) | |
if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: | |
os.close(p2cread) | |
if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: | |
os.close(c2pwrite) | |
if errwrite != -1 and errread != -1 and errwrite != devnull_fd: | |
os.close(errwrite) | |
if devnull_fd is not None: | |
os.close(devnull_fd) | |
# Prevent a double close of these fds from __init__ on error. | |
self._closed_child_pipe_fds = True | |
# Wait for exec to fail or succeed; possibly raising an | |
# exception (limited in size) | |
errpipe_data = bytearray() | |
while True: | |
part = os.read(errpipe_read, 50000) | |
errpipe_data += part | |
if not part or len(errpipe_data) > 50000: | |
break | |
finally: | |
# be sure the FD is closed no matter what | |
os.close(errpipe_read) | |
if errpipe_data: | |
try: | |
pid, sts = os.waitpid(self.pid, 0) | |
if pid == self.pid: | |
self._handle_exitstatus(sts) | |
else: | |
self.returncode = sys.maxsize | |
except ChildProcessError: | |
pass | |
try: | |
exception_name, hex_errno, err_msg = ( | |
errpipe_data.split(b':', 2)) | |
# The encoding here should match the encoding | |
# written in by the subprocess implementations | |
# like _posixsubprocess | |
err_msg = err_msg.decode() | |
except ValueError: | |
exception_name = b'SubprocessError' | |
hex_errno = b'0' | |
err_msg = 'Bad exception data from child: {!r}'.format( | |
bytes(errpipe_data)) | |
child_exception_type = getattr( | |
builtins, exception_name.decode('ascii'), | |
SubprocessError) | |
if issubclass(child_exception_type, OSError) and hex_errno: | |
errno_num = int(hex_errno, 16) | |
child_exec_never_called = (err_msg == "noexec") | |
if child_exec_never_called: | |
err_msg = "" | |
# The error must be from chdir(cwd). | |
err_filename = cwd | |
else: | |
err_filename = orig_executable | |
if errno_num != 0: | |
err_msg = os.strerror(errno_num) | |
if errno_num == errno.ENOENT: | |
err_msg += ': ' + repr(err_filename) | |
> raise child_exception_type(errno_num, err_msg, err_filename) | |
E OSError: [Errno 8] Exec format error: '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
args = ['/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'] | |
c2pread = 15 | |
c2pwrite = 16 | |
child_exception_type = <class 'OSError'> | |
child_exec_never_called = False | |
close_fds = True | |
creationflags = 0 | |
cwd = None | |
devnull_fd = None | |
env = None | |
env_list = None | |
err_filename = '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
err_msg = 'Exec format error' | |
errno_num = 8 | |
errpipe_data = bytearray(b'OSError:8:') | |
errpipe_read = 17 | |
errpipe_write = 18 | |
errread = -1 | |
errwrite = -1 | |
exception_name = bytearray(b'OSError') | |
executable = b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
executable_list = (b'/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe',) | |
fds_to_keep = {18} | |
hex_errno = bytearray(b'8') | |
low_fds_to_close = [] | |
orig_executable = '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe' | |
p2cread = 13 | |
p2cwrite = 14 | |
part = b'' | |
pass_fds = () | |
pid = 76024 | |
preexec_fn = None | |
restore_signals = True | |
self = <subprocess.Popen object at 0x7fcca5ff3dd0> | |
shell = False | |
start_new_session = False | |
startupinfo = None | |
sts = 65280 | |
../../opt/anaconda3/envs/py37/lib/python3.7/subprocess.py:1551: OSError | |
====================================================== warnings summary ====================================================== | |
openfisca_us/tests/test_variables.py::test_variable[basic_income] | |
/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/variables/contrib/ubi_center/basic_income/basic_income.py:19: RuntimeWarning: invalid value encountered in true_divide | |
tax_unit_phase_out / tax_unit_basic_income, | |
openfisca_us/tests/test_variables.py::test_variable[taxsim_childcare] | |
/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/variables/household/expense/childcare/tax_unit_childcare_expenses.py:19: RuntimeWarning: invalid value encountered in true_divide | |
tax_unit_count_children / spm_unit_count_children, | |
openfisca_us/tests/test_variables.py::test_variable[taxsim_fiitax] | |
/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/variables/gov/irs/credits/recovery_rebate_credit/rrc_arpa.py:31: RuntimeWarning: invalid value encountered in true_divide | |
* max_payment | |
openfisca_us/tests/test_variables.py::test_variable[spm_unit_income_decile] | |
/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/variables/gov/ssa/ssi/eligibility/income/deemed/from_ineligible_parent/ssi_unearned_income_deemed_from_ineligible_parent.py:65: RuntimeWarning: invalid value encountered in true_divide | |
net_parental_deemed_income / count_eligible_children, | |
openfisca_us/tests/test_variables.py::test_variable[spm_unit_income_decile] | |
/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/site-packages/microdf/generic.py:253: RuntimeWarning: invalid value encountered in true_divide | |
ranks /= self.weights.values.sum() | |
openfisca_us/tests/test_variables.py::test_variable[is_eligible_for_housing_assistance] | |
/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/variables/gov/hud/hud_income_level.py:28: RuntimeWarning: invalid value encountered in true_divide | |
income_ami_ratio = annual_income / ami | |
openfisca_us/tests/microsimulation/data/cps/test_cps.py::test_cps_dataset_generates[2020] | |
/Users/maxghenis/opt/anaconda3/envs/py37/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject | |
return f(*args, **kwds) | |
-- Docs: https://docs.pytest.org/en/latest/warnings.html | |
================================================== short test summary info =================================================== | |
ERROR openfisca_us/tests/microsimulation/test_against_taxsim.py::test_federal_tax_against_taxsim - OSError: [Errno 8] Exec ... | |
ERROR openfisca_us/tests/microsimulation/test_against_taxsim.py::test_state_income_tax_against_taxsim[MA] - OSError: [Errno... | |
=================================== 953 passed, 2 skipped, 7 warnings, 2 errors in 46.27s ==================================== | |
make: *** [test] Error 1 | |
(py37) maxghenis@Maxs-MacBook-Pro openfisca-us % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment