Skip to content

Commit

Permalink
Fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Apr 30, 2023
1 parent b81719e commit 6041cba
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions coconut/tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
MYPY,
PY35,
PY36,
PY39,
PY38,
icoconut_default_kernel_names,
icoconut_custom_kernel_name,
mypy_err_infixes,
Expand All @@ -60,13 +60,24 @@
auto_compilation,
setup,
)


# -----------------------------------------------------------------------------------------------------------------------
# SETUP:
# -----------------------------------------------------------------------------------------------------------------------


auto_compilation(False)

logger.verbose = property(lambda self: True, lambda self, value: print("WARNING: ignoring attempt to set logger.verbose = {value}".format(value=value)))

os.environ["PYDEVD_DISABLE_FILE_VALIDATION=1"] = "1"


# -----------------------------------------------------------------------------------------------------------------------
# CONSTANTS:
# -----------------------------------------------------------------------------------------------------------------------

logger.verbose = property(lambda self: True, lambda self, value: print("WARNING: ignoring attempt to set logger.verbose = {value}".format(value=value)))

default_recursion_limit = "4096"
default_stack_size = "4096"
Expand Down Expand Up @@ -833,27 +844,28 @@ class TestExternal(unittest.TestCase):
def test_pyprover(self):
with using_path(pyprover):
comp_pyprover()
run_pyprover()
if PY38:
run_pyprover()

if not PYPY or PY2:
def test_prelude(self):
with using_path(prelude):
comp_prelude()
if MYPY:
if MYPY and PY38:
run_prelude()

def test_bbopt(self):
with using_path(bbopt):
comp_bbopt()
if not PYPY and PY38:
install_bbopt()

def test_pyston(self):
with using_path(pyston):
comp_pyston(["--no-tco"])
if PYPY and PY2:
run_pyston()

def test_bbopt(self):
with using_path(bbopt):
comp_bbopt()
if not PYPY and (PY2 or PY36) and not PY39:
install_bbopt()


# -----------------------------------------------------------------------------------------------------------------------
# MAIN:
Expand Down

0 comments on commit 6041cba

Please sign in to comment.