Skip to content

Commit 9fe6a1a

Browse files
committed
Remove duplicate test
1 parent 1bb05e4 commit 9fe6a1a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def ccompile(self, name, check_duplicate_name=True):
123123
lib_file = install_dir / f'{name}{EXT_SUFFIX}'
124124

125125
if check_duplicate_name and available_checksum != cur_checksum and name in compiled_registry:
126-
print(f"\n\nWARNING: module with name '{name}' was already compiled, but with different source code. "
126+
raise RuntimeError(f"\n\nModule with name '{name}' was already compiled, but with different source code. "
127127
"Have you accidentally used the same name for two different CPyExtType, CPyExtHeapType, "
128128
"or similar helper calls? Modules with same name can sometimes confuse the import machinery "
129129
"and cause all sorts of trouble.\n")

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_abstract.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,6 @@ class TestAbstract(CPyExtTestCase):
690690
cmpfunc=unhandled_error_compare
691691
)
692692

693-
test_PyLong_Check = CPyExtFunction(
694-
lambda args: isinstance(args[0], int),
695-
_default_unarop_args,
696-
resultspec="i",
697-
argspec='O',
698-
arguments=["PyObject* v"],
699-
cmpfunc=unhandled_error_compare
700-
)
701-
702693
test_PyNumber_ToBase = CPyExtFunction(
703694
_reference_tobase,
704695
lambda: (

0 commit comments

Comments
 (0)