Seven unit tests failing
Please provide the following
- Machine and OS: Ubuntu 22.04 VM
- binary_c: stable
v2.2.3 - binary_c-python:
v0.9.6
Running the unit tests in binarycpython/tests results in 7 failing tests. Below the output:
reto@binary-c-vm:~/Documents/source_install/binary_c-python/binarycpython/tests$ python main.py
.....................................F.........................F...................................F........ls
...FF.....SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
SYSTEM_ERROR file /tmp/binary_c_python-reto/tests/test_grid/custom_logging/custom_logging.c, line 13, with error code 0: testing exits. This is part of the testing, don't worry (errno=0)
...............................F......................................
======================================================================
FAIL: test_Izzard2012_period_distribution (binarycpython.tests.tests_population_extensions.test_distribution_functions.test_Izzard2012_period_distribution)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/tests_population_extensions/test_distribution_functions.py", line 600, in test_Izzard2012_period_distribution
self._test_Izzard2012_period_distribution()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/tests_population_extensions/test_distribution_functions.py", line 663, in _test_Izzard2012_period_distribution
self.assertLess(
AssertionError: 2.9802151609976957e-05 not less than 1e-05 : Error: Value perl: 0.0575068231479569 Value python: 0.05753662529956688 for mass, per: [0.1, 39.810717055349734]
======================================================================
FAIL: test_cmdline (binarycpython.tests.test_grid.test_cmdline)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 177, in test_cmdline
self._test_cmdline()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 214, in _test_cmdline
self.assertTrue(test_pop.grid_options["num_cores"] == 2)
AssertionError: False is not true
======================================================================
FAIL: test_gaussian (binarycpython.tests.tests_population_extensions.test_distribution_functions.test_gaussian)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/tests_population_extensions/test_distribution_functions.py", line 472, in test_gaussian
self._test_gaussian()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/tests_population_extensions/test_distribution_functions.py", line 503, in _test_gaussian
self.assertLess(
AssertionError: 1.0598150051916756e-05 not less than 1e-05 : Error: Value perl: 0.00218800520299544 Value python: 0.002198603353047357 for logper: -2
======================================================================
FAIL: test_grid_evolve_1_thread (binarycpython.tests.test_grid.test_grid_evolve)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 687, in test_grid_evolve_1_thread
self._test_grid_evolve_1_thread()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 716, in _test_grid_evolve_1_thread
self.assertLess(
AssertionError: 0.0003758832590377015 not less than 1e-10 : 0.10783066961989227
======================================================================
FAIL: test_grid_evolve_2_threads (binarycpython.tests.test_grid.test_grid_evolve)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 725, in test_grid_evolve_2_threads
self._test_grid_evolve_2_threads()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 754, in _test_grid_evolve_2_threads
self.assertLess(
AssertionError: 0.0003758832590377015 not less than 1e-10 : 0.10783066961989227
======================================================================
FAIL: test_grid_evolve_with_condition_error (binarycpython.tests.test_grid.test_grid_evolve)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 825, in test_grid_evolve_with_condition_error
self._test_grid_evolve_with_condition_error()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 873, in _test_grid_evolve_with_condition_error
self.assertLess(
AssertionError: 0.0003758832590377015 not less than 1e-10 : 0.10783066961989227
======================================================================
FAIL: test_adding_results (binarycpython.tests.test_grid.test_resultdict)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 574, in test_adding_results
self._test_adding_results()
File "/home/reto/.pyenv/versions/source_install/lib/python3.9/site-packages/binarycpython/tests/test_grid.py", line 675, in _test_adding_results
self.assertEqual(
AssertionError: {2.25: 0.01895481306515, 3.75: 0.010813381[211 chars]1247} != {3.25: 0.01494561518222, 5.25: 0.008010721[183 chars]1969}
+ {2.25: 0.02788405806289,
+ 3.25: 0.01494561518222,
+ 5.25: 0.00801072113217,
+ 8.25: 0.004293677595401,
+ 13.75: 0.002301374244475,
+ 22.25: 0.001233516791947,
+ 35.75: 0.0006611543861969,
+ 57.25: 0.0003543730618352,
+ 92.75: 0.0001899409117994}
- {2.25: 0.01895481306515,
- 3.75: 0.01081338190204,
- 5.75: 0.006168841009268,
- 9.25: 0.003519213484031,
- 13.75: 0.002007648361756,
- 21.25: 0.001145327489437,
- 33.25: 0.0006533888518775,
- 50.75: 0.0003727466560393,
- 78.25: 0.000212645301782,
- 120.75: 0.0001213103421247}
----------------------------------------------------------------------
Ran 203 tests in 241.531s
FAILED (failures=7)