Skip to content

Commit 6e917d5

Browse files
committed
[GR-21590] Update imports
PullRequest: graalpython/988
2 parents 21086be + ecdbe1a commit 6e917d5

File tree

18 files changed

+188
-12
lines changed

18 files changed

+188
-12
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "342d54c7c779683771fd346ae919235334523e58" }
1+
{ "overlay": "6e0694bba348c69f01d4fb3f7d7ad2e128a93e94" }

graalpython/com.oracle.graal.python.benchmarks/python/harness.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,17 @@ def run(self):
292292
else:
293293
print("### iteration=%s, name=%s, duration=%s" % (iteration, self.bench_module.__name__,
294294
duration_str))
295+
# a bit of fuzzy logic to avoid timing out on configurations
296+
# that are slow, without having to rework our logic for getting
297+
# default iterations
298+
if os.environ.get("CI") and iteration >= 4 and duration > 20:
299+
import statistics
300+
v = durations[-4:]
301+
if statistics.stdev(v) / min(v) < 0.03:
302+
# with less than 3 percent variance across ~20s
303+
# iterations, we can safely stop here
304+
break
305+
295306

296307
print(_HRULE)
297308
print("### teardown ... ")

graalpython/com.oracle.graal.python.benchmarks/python/micro/c-call-method.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
static PyObject* nc_method_varargs(PyObject* self, PyObject* args, PyObject* kwds) {
4848
char *kwdnames[] = { "a", "b", "c", NULL};
4949
PyObject* longobj = NULL;
50-
PyObject* result = NULL;
5150
int ival = 0;
5251
long lval = 0;
5352
long lval2 = 0;
@@ -56,7 +55,6 @@
5655
return NULL;
5756
}
5857
lval2 = PyLong_AsLong(longobj);
59-
Py_DECREF(longobj);
6058
return PyLong_FromLong(lval2 + ival + lval);
6159
}
6260
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*CodecCallbackTest.test_badregistercall
22
*CodecCallbackTest.test_bug828737
3+
*CodecCallbackTest.test_translatehelper
34
*CodecCallbackTest.test_unencodablereplacement
45
*CodecCallbackTest.test_unknownhandler

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_float.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*FormatTestCase.test_format_testfile
55
*FormatTestCase.test_issue35560
66
*FormatTestCase.test_issue5864
7+
*GeneralFloatCases.test_float_containment
78
*GeneralFloatCases.test_floatasratio
89
*GeneralFloatCases.test_keyword_args
910
*HexFloatTestCase.test_ends
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
*LongTest.test_access_to_nonexistent_digit_0
22
*LongTest.test_bit_length
33
*LongTest.test_conversion
4+
*LongTest.test_floordiv
5+
*LongTest.test_from_bytes
6+
*LongTest.test_huge_lshift_of_zero
7+
*LongTest.test_karatsuba
8+
*LongTest.test_logs
9+
*LongTest.test_lshift_of_zero
10+
*LongTest.test_mod_division
11+
*LongTest.test_negative_shift_count
12+
*LongTest.test_shift_bool
13+
*LongTest.test_small_ints
14+
*LongTest.test_to_bytes
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*PowTest.test_bug643260
22
*PowTest.test_bug705231
3+
*PowTest.test_other
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
*SelectTestCase.test_error_conditions
12
*SelectTestCase.test_returned_list_identity
23
*SelectTestCase.test_select

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_set.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
*TestBinaryOps.test_intersection_overlap
1111
*TestBinaryOps.test_intersection_subset
1212
*TestBinaryOps.test_intersection_superset
13+
*TestBinaryOps.test_isdisjoint_non_overlap
14+
*TestBinaryOps.test_isdisjoint_overlap
15+
*TestBinaryOps.test_isdisjoint_subset
16+
*TestBinaryOps.test_isdisjoint_superset
1317
*TestBinaryOps.test_sym_difference_non_overlap
1418
*TestBinaryOps.test_sym_difference_overlap
1519
*TestBinaryOps.test_sym_difference_subset
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*ShlexTest.testCompat
2+
*ShlexTest.testJoin

0 commit comments

Comments
 (0)