TNO Intern

Commit c93e78dd authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Disabling the faulthandler for the tests

parent 6aeb6990
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ from unittest import TestCase
from pythermogis import *

# when running pytest with jpype a "Windows fatal exception" is thrown which in reality has no affect on the outcome or performance.
# the current workaround from the jpype package is to disable the system faulthandler. (This will not prevent python or java errors in the test).
# the current workaround from the jpype package is to disable the pytest faulthandler. (This will not prevent python or java errors in the test).
import faulthandler
faulthandler.disable()

+1 −1
Original line number Diff line number Diff line
import numpy as np

# when running pytest with jpype a "Windows fatal exception" is thrown which in reality has no affect on the outcome or performance.
# the current workaround from the jpype package is to disable the system faulthandler. (This will not prevent python or java errors in the test).
# the current workaround from the jpype package is to disable the pytest faulthandler. (This will not prevent python or java errors in the test).
import faulthandler
faulthandler.disable()

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ from pygridsio import read_grid, resample_xarray_grid
from pythermogis import *

# when running pytest with jpype a "Windows fatal exception" is thrown which in reality has no affect on the outcome or performance.
# the current workaround from the jpype package is to disable the system faulthandler. (This will not prevent python or java errors in the test).
# the current workaround from the jpype package is to disable the pytest faulthandler. (This will not prevent python or java errors in the test).
import faulthandler
faulthandler.disable()

+1 −1
Original line number Diff line number Diff line
from pythermogis import start_jvm

# when running pytest with jpype a "Windows fatal exception" is thrown which in reality has no affect on the outcome or performance.
# the current workaround from the jpype package is to disable the system faulthandler. (This will not prevent python or java errors in the test).
# the current workaround from the jpype package is to disable the pytest faulthandler. (This will not prevent python or java errors in the test).
import faulthandler
faulthandler.disable()

+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ from os import path
from pythermogis import *

# when running pytest with jpype a "Windows fatal exception" is thrown which in reality has no affect on the outcome or performance.
# the current workaround from the jpype package is to disable the system faulthandler. (This will not prevent python or java errors in the test).
# the current workaround from the jpype package is to disable the pytest faulthandler. (This will not prevent python or java errors in the test).
import faulthandler
faulthandler.disable()

Loading