org string | repo string | number int64 | state string | title string | body string | base dict | resolved_issues list | fix_patch string | test_patch string | valid bool | error_msg string | fixed_tests unknown | p2p_tests unknown | f2p_tests unknown | s2p_tests unknown | n2p_tests unknown | run_result dict | test_patch_result dict | fix_patch_result dict | instance_id string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dask | dask | 7,667 | closed | Fix maximum recursion depth exception in array.linspace (#7644) | - [x] Closes #7644
- [x] Tests added / passed
- [x] Passes `black dask` / `flake8 dask` / `isort dask`
It seems that the problem was that the call to `np.linspace` inside `da.linspace` is intercepted by `__array_function__` causing an infinite recursion, solved this by creating a function in chunk, that avoids in... | {
"label": "dask:main",
"ref": "main",
"sha": "d5f5b912e4d1b5d4477e5c797ef1e9ebd066c8c9"
} | [
{
"number": 7644,
"title": "Simple code is reaching a maximum recursion depth exception",
"body": "**What happened**:\r\n\r\nThe same numpy code sample is not working for Dask properly.\r\nIt is throwing `maximum recursion depth exceeded in comparison` exception.\r\n\r\n**What you expected to happen**: ... | diff --git a/dask/array/chunk.py b/dask/array/chunk.py
index 8a98e961550..48439b36f68 100644
--- a/dask/array/chunk.py
+++ b/dask/array/chunk.py
@@ -265,6 +265,18 @@ def arange(start, stop, step, length, dtype, like=None):
return res[:-1] if len(res) > length else res
+def linspace(start, stop, num, endpoint=T... | diff --git a/dask/array/tests/test_creation.py b/dask/array/tests/test_creation.py
index 821a49b04ff..76d4a5796f7 100644
--- a/dask/array/tests/test_creation.py
+++ b/dask/array/tests/test_creation.py
@@ -142,6 +142,11 @@ def test_linspace(endpoint):
da.linspace(6, 49, endpoint=endpoint, chunks=5, dtype=float)... | true | {
"dask/array/tests/test_creation.py::test_linspace": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"dask/array/tests/test_creation.py::test_repeat": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/array/tests/test_creation.py::test_tri": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/array/tests/test_creation.py::test_arange_dtypes": {
"run": "PASS",
"test... | {
"dask/array/tests/test_creation.py::test_linspace": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 29,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | {
"passed_count": 28,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | {
"passed_count": 29,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | dask__dask-7667 | |
dask | dask | 7,842 | closed | Handle infinite loops in merge_asof | Fixes infinite loop behavior in https://github.com/dask/dask/issues/7839.
The core of the issue is that `merge_asof_indexed` could receive dataframes where `divisions` was filled with `nan` or `NaT`. Thus the while loop in `pair_partitions` would never finish executing.
- [x] Closes https://github.com/dask/dask... | {
"label": "dask:main",
"ref": "main",
"sha": "8601b540f8e7eac95fa739a5ca28f1d707299ed0"
} | [
{
"number": 7839,
"title": "Infinite loop in dd.merge_asof with empty df on RHS",
"body": "<!-- Please include a self-contained copy-pastable example that generates the issue if possible.\r\n\r\nPlease be concise with code posted. See guidelines below on how to provide a good bug report:\r\n\r\n- Craft ... | diff --git a/dask/dataframe/multi.py b/dask/dataframe/multi.py
index 278d434ac68..b6e178eab8a 100644
--- a/dask/dataframe/multi.py
+++ b/dask/dataframe/multi.py
@@ -808,6 +808,22 @@ def merge_asof_indexed(left, right, **kwargs):
name = "asof-join-indexed-" + tokenize(left, right, **kwargs)
meta = pd.merge_aso... | diff --git a/dask/dataframe/tests/test_multi.py b/dask/dataframe/tests/test_multi.py
index c71411ccf9d..2a29f233ed7 100644
--- a/dask/dataframe/tests/test_multi.py
+++ b/dask/dataframe/tests/test_multi.py
@@ -582,6 +582,58 @@ def test_merge_asof_unsorted_raises():
result.compute()
+def test_merge_asof_with... | true | {
"dask/dataframe/tests/test_multi.py::test_merge_asof_with_empty": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/dataframe/tests/test_multi.py::test_append_categorical": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/dataframe/tests/test_multi.py::test_merge": {... | {
"dask/dataframe/tests/test_multi.py::test_merge_asof_with_empty": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 56,
"failed_count": 6,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | {
"passed_count": 56,
"failed_count": 7,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | {
"passed_count": 57,
"failed_count": 6,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | dask__dask-7842 | |
matplotlib | matplotlib | 26,767 | closed | Trim Gouraud triangles that contain NaN | ## PR summary
Agg enters an infinite loop if you give it points that are NaN, due to converting the values to fixed-point integers, and then oscillating between the large values that result from that conversion.
NaN values may be introduced after transforming the input, so we need to trim those after transformati... | {
"label": "matplotlib:main",
"ref": "main",
"sha": "01360ed3ec986f3cfc7055ebc3a630634fd404c5"
} | [
{
"number": 26765,
"title": "[Bug]: Crash in Windows 10 if polar axis lim is lower than lowest data point.",
"body": "### Bug summary\n\nThis example causes matplotlib to silently crash on Windows, but not on Mac. The example below is a minimal example. Looks like important detail is that the data exten... | diff --git a/src/_backend_agg.h b/src/_backend_agg.h
index f15fa05dd5fd..61c24232a866 100644
--- a/src/_backend_agg.h
+++ b/src/_backend_agg.h
@@ -1193,6 +1193,9 @@ inline void RendererAgg::_draw_gouraud_triangle(PointArray &points,
tpoints[i][j] = points(i, j);
}
trans.transform(&tpoints... | diff --git a/lib/matplotlib/tests/test_transforms.py b/lib/matplotlib/tests/test_transforms.py
index ee6754cb8da8..a9a92d33cff3 100644
--- a/lib/matplotlib/tests/test_transforms.py
+++ b/lib/matplotlib/tests/test_transforms.py
@@ -142,6 +142,25 @@ def test_pcolormesh_pre_transform_limits():
assert_almost_equal(exp... | true | {
"lib/matplotlib/tests/test_transforms.py::test_pcolormesh_gouraud_nans": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotli... | {
"lib/matplotlib/tests/test_transforms.py::test_pcolormesh_gouraud_nans": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 43,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | {
"passed_count": 43,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | {
"passed_count": 44,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | matplotlib__matplotlib-26767 | |
matplotlib | matplotlib | 30,198 | closed | Implement Path.__deepcopy__ avoiding infinite recursion | Implement `Path.__deepcopy__` avoiding infinite recursion
To deep copy an object without calling deepcopy on the object itself, create a new object of the correct class and iterate calling deepcopy on its `__dict__`.
Closes #29157 without relying on private CPython methods.
In a separate commit, fix the other ... | {
"label": "matplotlib:main",
"ref": "main",
"sha": "fed8c20760e90e80a21e5b4df102ad01778e76b1"
} | [
{
"number": 29157,
"title": "FUTURE BUG: reconsider how we deep-copy path objects",
"body": "We currently use `super()` in the `__deepcopy__` implementation of`Path`\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/183b04fb43f57ffe66da68c729a179e397cd35f6/lib/matplotlib/path.py#L279-L287\r\n\r\nhowe... | diff --git a/lib/matplotlib/path.py b/lib/matplotlib/path.py
index a021706fb1e5..f65ade669167 100644
--- a/lib/matplotlib/path.py
+++ b/lib/matplotlib/path.py
@@ -275,17 +275,37 @@ def copy(self):
"""
return copy.copy(self)
- def __deepcopy__(self, memo=None):
+ def __deepcopy__(self, memo):
... | diff --git a/lib/matplotlib/tests/test_path.py b/lib/matplotlib/tests/test_path.py
index d4dc0141e63b..a61f01c0d48a 100644
--- a/lib/matplotlib/tests/test_path.py
+++ b/lib/matplotlib/tests/test_path.py
@@ -355,15 +355,49 @@ def test_path_deepcopy():
# Should not raise any error
verts = [[0, 0], [1, 1]]
... | true | {
"lib/matplotlib/tests/test_path.py::test_path_deepcopy_cycle": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_path.py::test_point_in_path_n... | {
"lib/matplotlib/tests/test_path.py::test_path_deepcopy_cycle": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 30,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | {
"passed_count": 30,
"failed_count": 1,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | {
"passed_count": 31,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | matplotlib__matplotlib-30198 | |
matplotlib | matplotlib | 6,919 | closed | Rework MaxNLocator, eliminating infinite loop; closes #6849 | The core algorithm has been reimplemented in a more compact and understandable form than my earlier try at adding the `min_n_ticks` constraint.
I replaced the images for one mplot3d test because I think the present behavior is more consistent than the earlier behavior that led to those images. In the replaced version... | {
"label": "matplotlib:master",
"ref": "master",
"sha": "4e21b9a23cf66d119846facaa41a5be2c688eb67"
} | [
{
"number": 6849,
"title": "BUG: endless loop with MaxNLocator integer kwarg and short axis",
"body": "In v2.x:\n\n``` python\nfig, ax = plt.subplots()\nax.plot([0.5, 1.5], [1, 2])\nax.locator_params(axis='x', integer=True)\n```\n\nThis leads to an infinite loop in `MaxNLocator._raw_ticks`. \n"
}
] | diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py
index a2be7cbd805e..ac90453832dd 100644
--- a/lib/matplotlib/ticker.py
+++ b/lib/matplotlib/ticker.py
@@ -1603,7 +1603,9 @@ def __init__(self, *args, **kwargs):
e.g., [1, 2, 4, 5, 10]
*integer*
- If True, ticks will take... | diff --git a/lib/matplotlib/tests/test_ticker.py b/lib/matplotlib/tests/test_ticker.py
index 59deeaef892a..f077bee87ef0 100644
--- a/lib/matplotlib/tests/test_ticker.py
+++ b/lib/matplotlib/tests/test_ticker.py
@@ -14,6 +14,7 @@
import warnings
+@cleanup(style='classic')
def test_MaxNLocator():
loc = mticker... | true | {
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_ticker.py::test_LogLo... | {
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 20,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_AutoMinorLocator",
"lib/matplotlib/tes... | {
"passed_count": 20,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_AutoMinorLocator",
"lib/matplotlib/tes... | {
"passed_count": 21,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer",
"lib/matplotlib/... | matplotlib__matplotlib-6919 | |
numpy | numpy | 10,609 | closed | BUG: infinite recursion in str of 0d subclasses | Backport of #10544.
Fixes #10360, using @mhvk's suggestion.
| {
"label": "numpy:maintenance/1.14.x",
"ref": "maintenance/1.14.x",
"sha": "7311b961a6827abdee8179cf40f3ab4a2b682408"
} | [
{
"number": 10360,
"title": "numpy array printing regression for ndarray subclasses in NumPy 1.14",
"body": "It looks like some of the array printing changes in NumPy 1.14 are causing issues in yt. Specifically, printing yt's object that represents a scalar with units is triggering a recursion error. He... | diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 987589dbe1cc..381c1074d0a2 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -435,14 +435,17 @@ def wrapper(self, *args, **kwargs):
# gracefully handle recursive calls, when object arrays contain themselves
@_recursive_guard(... | diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py
index 3b6bc7b0f595..f70b6a3334b2 100644
--- a/numpy/core/tests/test_arrayprint.py
+++ b/numpy/core/tests/test_arrayprint.py
@@ -34,6 +34,55 @@ class sub(np.ndarray): pass
" [(1,), (1,)]], dtype=[('a', '<i4')])"
... | true | {
"numpy/core/tests/test_arrayprint.py::TestArrayRepr::test_0d_object_subclass": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/core/t... | {
"numpy/core/tests/test_arrayprint.py::TestArrayRepr::test_0d_object_subclass": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 34,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | {
"passed_count": 34,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | {
"passed_count": 35,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | numpy__numpy-10609 | |
numpy | numpy | 21,005 | closed | BUG: Add parameter check to negative_binomial | Hi!
First contribution to numpy here, hope I did it right. ~Searched the repo to see if this had been solved, but I couldn't find any other PR regarding this. PR marked as draft since it has no tests. **Will add tests if you deem this approach to solving #18997 acceptable.**~
-------------
Add parameter check to... | {
"label": "numpy:main",
"ref": "main",
"sha": "01b851aa844adc323e74e35a4effd3e8932347ce"
} | [
{
"number": 18997,
"title": "Silent overflow error in `numpy.random.default_rng.negative_binomial`",
"body": "<!-- Please describe the issue in detail here, and fill in the fields below -->\r\n\r\nThere still seem to be overflow/underflow problems for `negative_binomial` even in the \"new\" rng-API (see... | diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index d7c1879e7aee..3eb5876ecd46 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -15,6 +15,7 @@ from numpy.core.multiarray import normalize_axis_index
from .c_distributions cimport *
from libc cimport string
+from l... | diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py
index 7c61038a4f0d..3ccb9103c5c9 100644
--- a/numpy/random/tests/test_generator_mt19937.py
+++ b/numpy/random/tests/test_generator_mt19937.py
@@ -1485,6 +1485,13 @@ def test_negative_binomial_p0_exception(self):
... | true | {
"numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_negative_binomial_invalid_p_n_combination": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_respect_dtype_singleton": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_bounds_checking_array": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"n... | {
"numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_negative_binomial_invalid_p_n_combination": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 203,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_respect_dtype_singleton",
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_bounds_checking_array",
"numpy/random/tests/test_generator_mt1... | {
"passed_count": 203,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_respect_dtype_singleton",
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_bounds_checking_array",
"numpy/random/tests/test_generator_mt1... | {
"passed_count": 204,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_respect_dtype_singleton",
"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_bounds_checking_array",
"numpy/random/tests/test_generator_mt1... | numpy__numpy-21005 | |
numpy | numpy | 26,022 | closed | BUG: Fixes np.put receiving empty array causes endless loop | Backport of #25975.
Closes #25744.
The bug issue was in the np.put function, specifically when an empty array was passed in wrap mode, causing an endless loop. During the investigation of the bug, it was observed that a similar problem occurred when using an empty array in clip mode, resulting in a core dump.
... | {
"label": "numpy:maintenance/2.0.x",
"ref": "maintenance/2.0.x",
"sha": "8127f6d5f3e5d96a17b87fa479109161f761c218"
} | [
{
"number": 25744,
"title": "BUG: numpy.put causes endless loop if array is empty",
"body": "### Describe the issue:\r\n\r\nIn my project I want to use `numpy.put` and `numpy.take` to wrap-around a variable to safely access an array.\r\n\r\nIf the array is empty, numpy.take throws a \"IndexError: cannot... | diff --git a/numpy/_core/src/multiarray/item_selection.c b/numpy/_core/src/multiarray/item_selection.c
index 7f7d8394d6f3..37e33c28a944 100644
--- a/numpy/_core/src/multiarray/item_selection.c
+++ b/numpy/_core/src/multiarray/item_selection.c
@@ -394,6 +394,11 @@ PyArray_PutTo(PyArrayObject *self, PyObject* values0, Py... | diff --git a/numpy/_core/tests/test_multiarray.py b/numpy/_core/tests/test_multiarray.py
index 4a75d96fc06e..2f757298029f 100644
--- a/numpy/_core/tests/test_multiarray.py
+++ b/numpy/_core/tests/test_multiarray.py
@@ -3501,6 +3501,18 @@ def test_put(self):
bad_array = [1, 2, 3]
assert_raises(TypeErro... | true | {
"numpy/_core/tests/test_multiarray.py::TestMethods::test_put": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"numpy/_core/tests/test_multiarray.py::TestArrayCreationCopyArgument::test___array__copy_arg": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/_core/tests/test_multiarray.py::TestCAPI::test_intp_sequence_converters_errors": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"... | {
"numpy/_core/tests/test_multiarray.py::TestMethods::test_put": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 629,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"numpy/_core/tests/test_multiarray.py::TestArrayCreationCopyArgument::test___array__copy_arg",
"numpy/_core/tests/test_multiarray.py::TestCAPI::test_intp_sequence_converters_errors",
"numpy/_core/tests/test_multiarray.py... | {
"passed_count": 628,
"failed_count": 1,
"skipped_count": 2,
"passed_tests": [
"numpy/_core/tests/test_multiarray.py::TestArrayCreationCopyArgument::test___array__copy_arg",
"numpy/_core/tests/test_multiarray.py::TestCAPI::test_intp_sequence_converters_errors",
"numpy/_core/tests/test_multiarray.py... | {
"passed_count": 629,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"numpy/_core/tests/test_multiarray.py::TestArrayCreationCopyArgument::test___array__copy_arg",
"numpy/_core/tests/test_multiarray.py::TestCAPI::test_intp_sequence_converters_errors",
"numpy/_core/tests/test_multiarray.py... | numpy__numpy-26022 | |
numpy | numpy | 26,192 | closed | BUG: Infinite Loop in numpy.base_repr | Backport of #26162.
Fixes #26143
- Converts number to python int, before the absolute value of number is taken
- This avoids `abs(np.int8(-128))` yielding -128 and subsequently falling into an infinite loop
<!-- ----------------------------------------------------------------
MAKE SUR... | {
"label": "numpy:maintenance/2.0.x",
"ref": "maintenance/2.0.x",
"sha": "c466a89b8a1647a402e5662bb77e746c43bc49fa"
} | [
{
"number": 26143,
"title": "BUG: Infinite Loop in numpy.base_repr",
"body": "### Describe the issue:\n\nA call to `numpy.base_repr` with a minimal value of the underlying int-type results in an infinite loop, e.g. -128 for `np.int8`. The problem seems to be a call to `abs`. \r\n\n\n### Reproduce the co... | diff --git a/numpy/_core/numeric.py b/numpy/_core/numeric.py
index 429620da5359..d5116cee2756 100644
--- a/numpy/_core/numeric.py
+++ b/numpy/_core/numeric.py
@@ -2142,7 +2142,7 @@ def base_repr(number, base=2, padding=0):
elif base < 2:
raise ValueError("Bases less than 2 not handled in base_repr.")
- ... | diff --git a/numpy/_core/tests/test_numeric.py b/numpy/_core/tests/test_numeric.py
index 3acbb20a1619..b9fe1a15a914 100644
--- a/numpy/_core/tests/test_numeric.py
+++ b/numpy/_core/tests/test_numeric.py
@@ -1970,6 +1970,9 @@ def test_base_range(self):
with assert_raises(ValueError):
np.base_repr(1... | true | {
"numpy/_core/tests/test_numeric.py::TestBaseRepr::test_minimal_signed_int": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_prod": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_sum": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/_core/tests/test_numeric.py::TestFromiter::tes... | {
"numpy/_core/tests/test_numeric.py::TestBaseRepr::test_minimal_signed_int": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 243,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_prod",
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_sum",
"numpy/_core/tests/test_numeric.py::TestFromiter::test_empty_result",
"numpy/_core/te... | {
"passed_count": 243,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_prod",
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_sum",
"numpy/_core/tests/test_numeric.py::TestFromiter::test_empty_result",
"numpy/_core/te... | {
"passed_count": 244,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_prod",
"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_sum",
"numpy/_core/tests/test_numeric.py::TestFromiter::test_empty_result",
"numpy/_core/te... | numpy__numpy-26192 | |
psf | requests | 5,851 | closed | Fix extract_zipped_paths infinite loop when provided invalid unc path | Fixes https://github.com/psf/requests/issues/5850 | {
"label": "psf:master",
"ref": "master",
"sha": "b227e3cb82c8d42ea27790d615ecafe12528d3bc"
} | [
{
"number": 5850,
"title": "Infinite loop when verify is invalid UNC path",
"body": "When an invalid UNC path is passed to `requests.utils.extract_zipped_paths` it results in an infinite loop\r\n\r\n## Expected Result\r\n\r\nFor `extract_zipped_paths` to return the path and an Exception to be thrown whe... | diff --git a/requests/utils.py b/requests/utils.py
index db67938e67..1050de116e 100644
--- a/requests/utils.py
+++ b/requests/utils.py
@@ -245,6 +245,10 @@ def extract_zipped_paths(path):
archive, member = os.path.split(path)
while archive and not os.path.exists(archive):
archive, prefix = os.path.sp... | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 463516b2e5..98ffb25a6c 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -285,6 +285,10 @@ def test_zipped_paths_extracted(self, tmpdir):
assert os.path.exists(extracted_path)
assert filecmp.cmp(extracted_path, __file__)
+ d... | true | {
"tests/test_utils.py::test_infinite_loop_on_root_split": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_utils.py::test_parse_dict_header": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_utils.py::test_get_auth_from_url": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_utils.py::test_urldefragauth": {
"run": "PASS",
"test": "PASS",
"f... | {
"tests/test_utils.py::test_infinite_loop_on_root_split": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 61,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"tests/test_utils.py::test_select_proxies",
"tests/test_utils.py::TestUnquoteHeaderValue::test_valid",
"tests/test_utils.py::test_parse_dict_header",
"tests/test_utils.py::test_get_auth_from_url",
"tests/test_util... | {
"passed_count": 62,
"failed_count": 1,
"skipped_count": 1,
"passed_tests": [
"tests/test_utils.py::test_select_proxies",
"tests/test_utils.py::TestUnquoteHeaderValue::test_valid",
"tests/test_utils.py::test_parse_dict_header",
"tests/test_utils.py::test_get_auth_from_url",
"tests/test_util... | {
"passed_count": 63,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"tests/test_utils.py::test_select_proxies",
"tests/test_utils.py::TestUnquoteHeaderValue::test_valid",
"tests/test_utils.py::test_parse_dict_header",
"tests/test_utils.py::test_get_auth_from_url",
"tests/test_util... | psf__requests-5851 | |
pydata | xarray | 10,248 | closed | Fix infinite recursion when calling `np.fix` | - [x] Closes #9872
- [x] Tests added
| {
"label": "pydata:main",
"ref": "main",
"sha": "e37bfbf1bff63476de9e9d95eedbbd66d864f588"
} | [
{
"number": 9872,
"title": "`np.fix` on a data array produces `RecursionError: maximum recursion depth exceeded`",
"body": "### What happened?\n\nI've run the very simple following code : \r\n```\r\nimport numpy as np, xarray as xr\r\nprint (np.fix(3.0))\r\naa = xr.DataArray([3.0])\r\nprint (np.fix(aa))... | diff --git a/xarray/computation/apply_ufunc.py b/xarray/computation/apply_ufunc.py
index 50c3ed4bbd8..41f4adb5fd5 100644
--- a/xarray/computation/apply_ufunc.py
+++ b/xarray/computation/apply_ufunc.py
@@ -30,10 +30,7 @@
from xarray.core.formatting import limit_lines
from xarray.core.indexes import Index, filter_index... | diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py
index dc7016238df..cb12f3df534 100644
--- a/xarray/tests/test_computation.py
+++ b/xarray/tests/test_computation.py
@@ -2627,3 +2627,14 @@ def test_complex_number_reduce(compute_backend):
# Check that xarray doesn't call into numbagg,... | true | {
"xarray/tests/test_computation.py::test_fix": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"xarray/tests/test_computation.py::test_ordered_set_intersection": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"xarray/tests/test_computation.py::test_ordered_set_union": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"xarray/tests/test_computation.py::test_keep_attrs_strate... | {
"xarray/tests/test_computation.py::test_fix": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 65,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"xarray/tests/test_computation.py::test_corr_lazycorr_consistency",
"xarray/tests/test_computation.py::test_ordered_set_intersection",
"xarray/tests/test_computation.py::test_cross",
"xarray/tests/test_computation.py:... | {
"passed_count": 65,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"xarray/tests/test_computation.py::test_corr_lazycorr_consistency",
"xarray/tests/test_computation.py::test_ordered_set_intersection",
"xarray/tests/test_computation.py::test_cross",
"xarray/tests/test_computation.py:... | {
"passed_count": 66,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"xarray/tests/test_computation.py::test_corr_lazycorr_consistency",
"xarray/tests/test_computation.py::test_ordered_set_intersection",
"xarray/tests/test_computation.py::test_cross",
"xarray/tests/test_computation.py:... | pydata__xarray-10248 | |
pylint-dev | pylint | 5,062 | closed | Fix loop in too-many-ancestors when an inheritance cycle is inferred | <!--
Thank you for submitting a PR to pylint!
To ease the process of reviewing your PR, do make sure to complete the following boxes.
- [x] Add yourself to CONTRIBUTORS if you are a new contributor.
- [ ] Add a ChangeLog entry describing what your PR does.
- [x] If it's a new feature, or an important bug fix, ... | {
"label": "pylint-dev:main",
"ref": "main",
"sha": "09a0b50bfeb473625f8ad586f72fd35d790de6ac"
} | [
{
"number": 4972,
"title": "2.10.2 Hangs forever, downgrade to 2.9.6 is working",
"body": "### Bug description\n\n```python\nInstalling last version (2.10.2) results in unexpected hangs.\r\nDowngrading to 2.9.6 works as expected.\n```\n\n\n### Configuration\n\n```ini\n[MASTER]\r\n\r\n# A comma-separated... | diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py
index 809a49f43e..971a397ce6 100644
--- a/pylint/checkers/design_analysis.py
+++ b/pylint/checkers/design_analysis.py
@@ -28,7 +28,7 @@
import re
from collections import defaultdict
-from typing import FrozenSet, List, Set, cast
+f... | diff --git a/tests/regrtest_data/hang/pkg4972/__init__.py b/tests/regrtest_data/hang/pkg4972/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/regrtest_data/hang/pkg4972/string/__init__.py b/tests/regrtest_data/hang/pkg4972/string/__init__.py
new file mode 100644
index 0000000000..4a77f25... | true | {
"tests/test_regr.py::test_hang[/home/pylint/tests/regrtest_data/hang/pkg4972.string-30.0]": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_regr.py::test_crash[/home/pylint/tests/regrtest_data/try_finally_disable_msg_crash]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_regr.py::test_check_package___init__": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_regr.py::test_package[f... | {
"tests/test_regr.py::test_hang[/home/pylint/tests/regrtest_data/hang/pkg4972.string-30.0]": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 18,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_regr.py::test_package[file_name2-<lambda>]",
"tests/test_regr.py::test_package[file_name7-<lambda>]",
"tests/test_regr.py::test_package[file_name0-<lambda>]",
"tests/test_regr.py::test_crash[/home/pylint/t... | {
"passed_count": 18,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"tests/test_regr.py::test_package[file_name2-<lambda>]",
"tests/test_regr.py::test_package[file_name7-<lambda>]",
"tests/test_regr.py::test_package[file_name0-<lambda>]",
"tests/test_regr.py::test_crash[/home/pylint/t... | {
"passed_count": 19,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_regr.py::test_hang[/home/pylint/tests/regrtest_data/hang/pkg4972.string-30.0]",
"tests/test_regr.py::test_check_package___init__",
"tests/test_regr.py::test_package[file_name5-<lambda>]",
"tests/test_regr.... | pylint-dev__pylint-5062 | |
scikit-learn | scikit-learn | 21,271 | closed | FIX Fixed infinite loop in cluster._spectral.discretize | Fixes #21380
#### What does this implement/fix? Explain your changes.
The nested while loops in this function have two iteration counters (`n_iter` and `svd_restarts`) ostensibly to prevent the loops from iterating endlessly. Unfortunately, the second counter was placed in a try...except clause _after_ the function... | {
"label": "scikit-learn:main",
"ref": "main",
"sha": "b07b2273e4ee940ebb2c8a302e95fb051644345e"
} | [
{
"number": 21380,
"title": "`SVD did not converge` error causes infinite loop in spectral clustering ",
"body": "### Describe the bug\n\nWhen SVD does not converge during the discretize step of spectral clustering, it tries again endlessly. \r\n\r\nThis appears to be caused by the code [in this try bl... | diff --git a/doc/whats_new/v1.0.rst b/doc/whats_new/v1.0.rst
index e85b423728cea..e5af4edfe3ae4 100644
--- a/doc/whats_new/v1.0.rst
+++ b/doc/whats_new/v1.0.rst
@@ -12,6 +12,13 @@ Version 1.0.2
Changelog
---------
+:mod:`sklearn.cluster`
+......................
+
+- |Fix| Fixed an infinite loop in :func:`cluster.Sp... | diff --git a/sklearn/cluster/tests/test_spectral.py b/sklearn/cluster/tests/test_spectral.py
index 07dd4b64514ac..702906b3fa0e7 100644
--- a/sklearn/cluster/tests/test_spectral.py
+++ b/sklearn/cluster/tests/test_spectral.py
@@ -3,6 +3,7 @@
import numpy as np
from scipy import sparse
+from scipy.linalg import LinAl... | true | {
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_not_infinite_loop": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_with_arpack_amg_solvers": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/cluster/tests/test_spectral.py::test_affinities": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/cluster/tests/test_spect... | {
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_not_infinite_loop": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 14,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_with_arpack_amg_solvers",
"sklearn/cluster/tests/test_spectral.py::test_affinities",
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_np_m... | {
"passed_count": 14,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_with_arpack_amg_solvers",
"sklearn/cluster/tests/test_spectral.py::test_affinities",
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_np_m... | {
"passed_count": 15,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_with_arpack_amg_solvers",
"sklearn/cluster/tests/test_spectral.py::test_affinities",
"sklearn/cluster/tests/test_spectral.py::test_spectral_clustering_np_m... | scikit-learn__scikit-learn-21271 | |
scikit-learn | scikit-learn | 28,165 | closed | Fix prevent infinite loop in KMeans | Fixes https://github.com/scikit-learn/scikit-learn/issues/28055
When there are more centers than non-duplicate samples, the relocation of empty cluster will trigger at every iteration preventing the algorithm to stop. | {
"label": "scikit-learn:main",
"ref": "main",
"sha": "d418e79a41d5d4de167114d88465a0b47b0d6a2c"
} | [
{
"number": 28055,
"title": "Infinite Loop in K-means when relocating empty clusters",
"body": "### Describe the bug\r\n\r\nRelocating empty clusters in Kmeans is not working as expected in this edge case, where :\r\n- There is duplicate entries.\r\n- The number of clusters is equal to the number of ent... | diff --git a/doc/whats_new/v1.4.rst b/doc/whats_new/v1.4.rst
index c674a8619e076..ee47bae7b1f5b 100644
--- a/doc/whats_new/v1.4.rst
+++ b/doc/whats_new/v1.4.rst
@@ -20,6 +20,9 @@ Changelog
:pr:`28121` by :user:`Pietro Peterlongo <pietroppeter>` and
:user:`Yao Xiao <Charlie-XIAO>`.
+- |Fix| Avoid infinite loop i... | diff --git a/sklearn/cluster/tests/test_k_means.py b/sklearn/cluster/tests/test_k_means.py
index 5b0c7ab9aace8..4a112a30b29ed 100644
--- a/sklearn/cluster/tests/test_k_means.py
+++ b/sklearn/cluster/tests/test_k_means.py
@@ -1352,3 +1352,21 @@ def test_sample_weight_zero(init, global_random_seed):
# (i.e. be at a ... | true | {
"sklearn/cluster/tests/test_k_means.py::test_relocating_with_duplicates": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sklearn/cluster/tests/test_k_means.py::test_minibatch_kmeans_warning_init_size": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/cluster/tests/test_k_means.py::test_euclidean_distance": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/cluster/tests/test_k_means.... | {
"sklearn/cluster/tests/test_k_means.py::test_relocating_with_duplicates": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 62,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_k_means.py::test_minibatch_kmeans_warning_init_size",
"sklearn/cluster/tests/test_k_means.py::test_euclidean_distance",
"sklearn/cluster/tests/test_k_means.py::test_kmeans_predict",
"sklear... | {
"passed_count": 62,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_k_means.py::test_minibatch_kmeans_warning_init_size",
"sklearn/cluster/tests/test_k_means.py::test_euclidean_distance",
"sklearn/cluster/tests/test_k_means.py::test_kmeans_predict",
"sklear... | {
"passed_count": 63,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/cluster/tests/test_k_means.py::test_minibatch_kmeans_warning_init_size",
"sklearn/cluster/tests/test_k_means.py::test_euclidean_distance",
"sklearn/cluster/tests/test_k_means.py::test_kmeans_predict",
"sklear... | scikit-learn__scikit-learn-28165 | |
scikit-learn | scikit-learn | 31,888 | closed | Raise error logreg liblinear | #### Reference Issues/PRs
Fixes #7486
#### What does this implement/fix? Explain your changes.
LogisticRegression freezes when using the liblinear solver with X containing large values>1e30. A ValueError is now raised if X contains a maximum value >1e30 with accompanying tests
#### Any other comments?
@... | {
"label": "scikit-learn:main",
"ref": "main",
"sha": "c8a5f807a365a069b4d96da1a84318ce6253eab7"
} | [
{
"number": 7486,
"title": "LogisticRegression freezed when X containing large number",
"body": "The following code will freeze\n\n``` python\nX = np.array([0, 1e+100]).reshape(-1, 1)\ny = np.array([0, 1])\nclf = LogisticRegression(solver='liblinear').fit(X, y)\n```\n\nIt seems to be a liblinear problem... | diff --git a/doc/whats_new/upcoming_changes/sklearn.linear_model/31888.api.rst b/doc/whats_new/upcoming_changes/sklearn.linear_model/31888.api.rst
new file mode 100644
index 0000000000000..a1ac21999bb09
--- /dev/null
+++ b/doc/whats_new/upcoming_changes/sklearn.linear_model/31888.api.rst
@@ -0,0 +1,4 @@
+- Raising erro... | diff --git a/sklearn/linear_model/tests/test_logistic.py b/sklearn/linear_model/tests/test_logistic.py
index 6b08be5a95a0d..440c5d4fdbbb0 100644
--- a/sklearn/linear_model/tests/test_logistic.py
+++ b/sklearn/linear_model/tests/test_logistic.py
@@ -2319,6 +2319,23 @@ def test_large_sparse_matrix(solver, global_random_s... | true | {
"sklearn/linear_model/tests/test_logistic.py::test_liblinear_with_large_values": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sklearn/linear_model/tests/test_logistic.py::test_logistic_regression_class_weights": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/linear_model/tests/test_logistic.py::test_liblinear_decision_function_zero": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sklearn/li... | {
"sklearn/linear_model/tests/test_logistic.py::test_liblinear_with_large_values": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 77,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/linear_model/tests/test_logistic.py::test_logistic_regression_class_weights",
"sklearn/linear_model/tests/test_logistic.py::test_warm_start_newton_solver",
"sklearn/linear_model/tests/test_logistic.py::test_logre... | {
"passed_count": 77,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sklearn/linear_model/tests/test_logistic.py::test_logistic_regression_class_weights",
"sklearn/linear_model/tests/test_logistic.py::test_warm_start_newton_solver",
"sklearn/linear_model/tests/test_logistic.py::test_logre... | {
"passed_count": 78,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sklearn/linear_model/tests/test_logistic.py::test_logistic_regression_class_weights",
"sklearn/linear_model/tests/test_logistic.py::test_warm_start_newton_solver",
"sklearn/linear_model/tests/test_logistic.py::test_logre... | scikit-learn__scikit-learn-31888 | |
sympy | sympy | 10,478 | closed | For Issue No - 10388 Commit #10388 : Factorial2 Issue Sorted | Fixes #10388 . Previously, it ran into an infinite loop for fractions and negative integers, Now after this changes, it returns the complex infinity - zoo for integers less than -1, and returns an error message for fractions. So, the problem mentioned in the issue #10388 is basically solved. It can be verified after ex... | {
"label": "sympy:master",
"ref": "master",
"sha": "bdb181bbc640df4f1e27ebe42a385da5780f0fa2"
} | [
{
"number": 10388,
"title": "`factorial2` runs into `RunTimeError` for non-integer",
"body": "```\n>>> from sympy import factorial2, S\n>>> factorial2(S(5)/2)\nFile \"/home/gxyd/Public/sympy/sympy/core/function.py\", line 200, in __new__\n evaluated = cls.eval(*args)\n File \"/home/gxyd/Public/sympy... | diff --git a/sympy/functions/combinatorial/factorials.py b/sympy/functions/combinatorial/factorials.py
index ea9e5a5ec0c5..48ea1755559f 100644
--- a/sympy/functions/combinatorial/factorials.py
+++ b/sympy/functions/combinatorial/factorials.py
@@ -330,8 +330,8 @@ def eval(cls, arg):
# TODO: extend this to compl... | diff --git a/sympy/functions/combinatorial/tests/test_comb_factorials.py b/sympy/functions/combinatorial/tests/test_comb_factorials.py
index 9b54ea1019e9..1886a053ba67 100644
--- a/sympy/functions/combinatorial/tests/test_comb_factorials.py
+++ b/sympy/functions/combinatorial/tests/test_comb_factorials.py
@@ -3,8 +3,9 ... | true | {
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial2": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_binomial_rewrite": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial_rewrite": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/func... | {
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial2": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 12,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_binomial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_f... | {
"passed_count": 11,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_binomial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_f... | {
"passed_count": 12,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_binomial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_factorials.py::test_factorial_rewrite",
"sympy/functions/combinatorial/tests/test_comb_f... | sympy__sympy-10478 | |
sympy | sympy | 12,621 | closed | Fixing infinite recursion in periodicity | Fixes #12620
@smichr | {
"label": "sympy:master",
"ref": "master",
"sha": "b5257d1ac19ebde33f6ec7dfdf2e63b0d37cc749"
} | [
{
"number": 12620,
"title": "infinite recursion in periodicity",
"body": "I get an infinite recursion when trying to solve\r\n\r\n```\r\nperiodicity(abs(x**2 - 3*x), x)\r\n```\r\n"
}
] | diff --git a/sympy/calculus/util.py b/sympy/calculus/util.py
index 21d6e80a4d46..4bfeff494823 100644
--- a/sympy/calculus/util.py
+++ b/sympy/calculus/util.py
@@ -381,12 +381,9 @@ def periodicity(f, symbol, check=False):
for index, g in enumerate(reversed(g_s)):
start_index = num_of_gs - 1... | diff --git a/sympy/calculus/tests/test_util.py b/sympy/calculus/tests/test_util.py
index a58b1c2e335a..cf44021419aa 100644
--- a/sympy/calculus/tests/test_util.py
+++ b/sympy/calculus/tests/test_util.py
@@ -1,5 +1,5 @@
from sympy import (Symbol, S, exp, log, sqrt, oo, E, zoo, pi, tan, sin, cos,
- cot... | true | {
"sympy/calculus/tests/test_util.py::test_periodicity": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/calculus/tests/test_util.py::test_not_empty_in": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_util.py::test_function_range": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_util.py::test_AccumBounds_div": {
"run"... | {
"sympy/calculus/tests/test_util.py::test_periodicity": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 13,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_AccumBounds_pow",
"sympy/calculus/tests/test_util.py::test_periodicity",
"sympy/calculus/tests/test_util.py::test_function_range",
"sympy/calculus/tests/test_util.py::test_Accu... | {
"passed_count": 12,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_AccumBounds_pow",
"sympy/calculus/tests/test_util.py::test_function_range",
"sympy/calculus/tests/test_util.py::test_AccumBounds_div",
"sympy/calculus/tests/test_util.py::test_... | {
"passed_count": 13,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_AccumBounds_pow",
"sympy/calculus/tests/test_util.py::test_periodicity",
"sympy/calculus/tests/test_util.py::test_function_range",
"sympy/calculus/tests/test_util.py::test_Accu... | sympy__sympy-12621 | |
sympy | sympy | 14,404 | closed | Prevent infinite recursion in as_real_imag | #### References to other Issues or PRs
Fixes #14392
#### Brief description of what is fixed or changed
The method `as_real_imag` calls itself in certain cases, after supposedly transforming the expression into something that can be expanded more efficiently. In some edge cases this transform results in the sam... | {
"label": "sympy:master",
"ref": "master",
"sha": "f35ad6411f86a15dd78db39c29d1e5291f66f9b5"
} | [
{
"number": 14392,
"title": "RuntimeError in subs",
"body": "`((-sin(1/x)**2 + 1)).subs(x,0)` raises `RuntimeError: maximum recursion depth exceeded`"
}
] | diff --git a/sympy/core/power.py b/sympy/core/power.py
index bd4bb7ae156c..db3aa0856414 100644
--- a/sympy/core/power.py
+++ b/sympy/core/power.py
@@ -1087,7 +1087,8 @@ def as_real_imag(self, deep=True, **hints):
if re.is_Number and im.is_Number:
# We can be more efficient in this ... | diff --git a/sympy/core/tests/test_arit.py b/sympy/core/tests/test_arit.py
index 110125aaa0fe..3bf9be5bd570 100644
--- a/sympy/core/tests/test_arit.py
+++ b/sympy/core/tests/test_arit.py
@@ -1981,3 +1981,7 @@ def test_issue_8247_8354():
def test_Add_is_zero():
x, y = symbols('x y', zero=True)
assert (x + y).... | true | {
"sympy/core/tests/test_arit.py::test_issue_14392": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/core/tests/test_arit.py::test_Mul_with_zero_infinite": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_arit.py::test_issue_5460": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_arit.py::test_Mul_is_negative_positive_2": {
... | {
"sympy/core/tests/test_arit.py::test_issue_14392": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 80,
"failed_count": 3,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_arit.py::test_Mul_with_zero_infinite",
"sympy/core/tests/test_arit.py::test_issue_5460",
"sympy/core/tests/test_arit.py::test_Add_is_rational",
"sympy/core/tests/test_arit.py::test_Mod",
"sy... | {
"passed_count": 80,
"failed_count": 4,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_arit.py::test_Mul_with_zero_infinite",
"sympy/core/tests/test_arit.py::test_issue_5460",
"sympy/core/tests/test_arit.py::test_Add_is_rational",
"sympy/core/tests/test_arit.py::test_Mod",
"sy... | {
"passed_count": 81,
"failed_count": 3,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_arit.py::test_Mul_with_zero_infinite",
"sympy/core/tests/test_arit.py::test_issue_5460",
"sympy/core/tests/test_arit.py::test_Add_is_rational",
"sympy/core/tests/test_arit.py::test_Mod",
"sy... | sympy__sympy-14404 | |
sympy | sympy | 15,418 | closed | Fixed an issue in solve sometimes causing a hang | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-issues... | {
"label": "sympy:master",
"ref": "master",
"sha": "9fb22c10a89a0362170fd884e79b354acfbd562f"
} | [
{
"number": 15415,
"title": "solve hangs on list of equations",
"body": "While working on #15414 I found an intermittent case where `solve` hangs. I am not sure if this is the same as the intermittent problem but I'm reporting here a case that reliably hangs.\r\n\r\nI'm finding that solve hangs when ask... | diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py
index b7d66bbefd21..6717b4cfd7a8 100644
--- a/sympy/solvers/solvers.py
+++ b/sympy/solvers/solvers.py
@@ -2999,6 +2999,9 @@ def _invert(eq, *symbols, **kwargs):
"""
eq = sympify(eq)
+ if eq.args:
+ # make sure we are working with fla... | diff --git a/sympy/solvers/tests/test_solvers.py b/sympy/solvers/tests/test_solvers.py
index 80cfa80e1f92..241b55b120ac 100644
--- a/sympy/solvers/tests/test_solvers.py
+++ b/sympy/solvers/tests/test_solvers.py
@@ -1990,3 +1990,10 @@ def test_issue_15307():
eq1 = Eq(12513*x + 2*y - 219093, -5726*x - y)
eq2 = ... | true | {
"sympy/solvers/tests/test_solvers.py::test_issue_15415": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_solvers.py::test_solve_polynomial_cv_2": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_lam... | {
"sympy/solvers/tests/test_solvers.py::test_issue_15415": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 99,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_polynomial_cv_2",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/solvers/tests/test_solvers.py::test_lambert_multivariate",
"sympy/solver... | {
"passed_count": 97,
"failed_count": 4,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_polynomial_cv_2",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/solvers/tests/test_solvers.py::test_lambert_multivariate",
"sympy/solver... | {
"passed_count": 98,
"failed_count": 3,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_polynomial_cv_2",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/solvers/tests/test_solvers.py::test_lambert_multivariate",
"sympy/solver... | sympy__sympy-15418 | |
sympy | sympy | 15,565 | closed | Make the substitution of symbols consistent with powers of symbols | #### References to other Issues or PRs
Fixes #6976. Closes #4514 which was already fixed; removed XFAIL from its test
#### Brief description of what is fixed or changed
The `subs` method now applies the same logic to symbols as to their powers, by calling `Pow._eval_subs`. Old behavior:
```
>>> (log(x)**2/x)... | {
"label": "sympy:master",
"ref": "master",
"sha": "39fe1d243440277a01d15fabc58dd36fc8c12f65"
} | [
{
"number": 6976,
"title": "subs should recognize powers with exponent 1",
"body": "```\nIn [31]: (sqrt(x)**3 + sqrt(x) + x + x**2).subs(sqrt(x), y)\nOut[31]:\n 4 3\nx + y + y + y\n\nEvery term but x is replaced. This is because x is not a power, so the subs power logic is not applied to it.\n`... | diff --git a/sympy/core/power.py b/sympy/core/power.py
index 02c04107ad09..31ff30e0babb 100644
--- a/sympy/core/power.py
+++ b/sympy/core/power.py
@@ -676,7 +676,7 @@ def _check(ct1, ct2, old):
except ValueError:
combines = isinstance(Pow._eval_power(
... | diff --git a/sympy/core/tests/test_subs.py b/sympy/core/tests/test_subs.py
index 1dc5b957da06..762f75045da9 100644
--- a/sympy/core/tests/test_subs.py
+++ b/sympy/core/tests/test_subs.py
@@ -194,7 +194,7 @@ def test_mul():
x, y, z, a, b, c = symbols('x y z a b c')
A, B, C = symbols('A B C', commutative=0)
... | true | {
"sympy/core/tests/test_subs.py::test_issue_6976": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/core/tests/test_subs.py::test_mul": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/core/tests/test_subs.py::test_subs_constants": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_subs.py::test_issue_4680": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_subs.py::test_subs_wild": {
"run": "PASS",
"test"... | {
"sympy/core/tests/test_subs.py::test_issue_6976": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/core/tests/test_subs.py::test_mul": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 60,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_subs.py::test_subs_constants",
"sympy/core/tests/test_subs.py::test_issue_4680",
"sympy/core/tests/test_subs.py::test_subs_wild",
"sympy/core/tests/test_subs.py::test_Subs_subs",
"sympy/core... | {
"passed_count": 59,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_subs.py::test_subs_constants",
"sympy/core/tests/test_subs.py::test_issue_4680",
"sympy/core/tests/test_subs.py::test_subs_wild",
"sympy/core/tests/test_subs.py::test_Subs_subs",
"sympy/core... | {
"passed_count": 61,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_subs.py::test_subs_constants",
"sympy/core/tests/test_subs.py::test_issue_4680",
"sympy/core/tests/test_subs.py::test_subs_wild",
"sympy/core/tests/test_subs.py::test_Subs_subs",
"sympy/core... | sympy__sympy-15565 | |
sympy | sympy | 15,569 | closed | Remove undocumented "sequence" flag from Limit.doit() | #### References to other Issues or PRs
Fixes #14377. Closes #14378 by replicating those commits (from a now-deleted repo).
Addresses a part of #15566 (infinite recursion no longer occurs, but the integral returns un-evaluated).
#### Brief description of what is fixed or changed
Currently, if heuristics and gr... | {
"label": "sympy:master",
"ref": "master",
"sha": "dc0d6cb29b90c3195fcffd4f6f066e4278122c81"
} | [
{
"number": 14377,
"title": "The limit of exp(I*x)*sin(pi*x) at infinity is reported to be 0",
"body": "In current master: \r\n```\r\n>>> var('x')\r\n>>> limit(exp(I*x)*sin(pi*x), x, oo)\r\n0\r\n```"
},
{
"number": 14378,
"title": "Remove \"sequence\" flag from Limit.doit()",
"body": "##... | diff --git a/sympy/concrete/summations.py b/sympy/concrete/summations.py
index 55dbba7de50c..234811fc63d0 100644
--- a/sympy/concrete/summations.py
+++ b/sympy/concrete/summations.py
@@ -15,7 +15,7 @@
from sympy.functions.elementary.piecewise import Piecewise
from sympy.logic.boolalg import And
from sympy.polys impo... | diff --git a/sympy/series/tests/test_limits.py b/sympy/series/tests/test_limits.py
index 434296a06d4b..d0b463ce40b4 100644
--- a/sympy/series/tests/test_limits.py
+++ b/sympy/series/tests/test_limits.py
@@ -114,10 +114,6 @@ def eval(cls, arg):
def test_issue_3885():
assert limit(x*y + x*z, z, 2) == x*y + 2*x
-d... | true | {
"sympy/series/tests/test_limits.py::test_issue_14377": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/series/tests/test_limits.py::test_abs": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/series/tests/test_limits.py::test_issue_8730": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/series/tests/test_limits.py::test_issue_5184": {
"run": "PASS",
"tes... | {
"sympy/series/tests/test_limits.py::test_issue_14377": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 59,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_abs",
"sympy/series/tests/test_limits.py::test_issue_8730",
"sympy/series/tests/test_limits.py::test_issue_5184",
"sympy/series/tests/test_limits.py::test_Limit_dir",
"symp... | {
"passed_count": 57,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_abs",
"sympy/series/tests/test_limits.py::test_issue_8730",
"sympy/series/tests/test_limits.py::test_issue_5184",
"sympy/series/tests/test_limits.py::test_Limit_dir",
"symp... | {
"passed_count": 58,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_abs",
"sympy/series/tests/test_limits.py::test_issue_8730",
"sympy/series/tests/test_limits.py::test_issue_5184",
"sympy/series/tests/test_limits.py::test_Limit_dir",
"symp... | sympy__sympy-15569 | |
sympy | sympy | 15,752 | closed | Fix hang in casoratian determinant leading to hang in rsolve | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-issues... | {
"label": "sympy:master",
"ref": "master",
"sha": "836e9d5d175cb2d342a0727e3bc477d3f82be2bb"
} | [
{
"number": 15751,
"title": "Hang in rsolve (apparently due to slow casoratian determinant calculation)",
"body": "A number of solvable recurrence equations result in a hang when calling `rsolve`. This looks to be due to a slow calculation of the cassoration determinant.\r\n\r\nHere's an example that st... | diff --git a/sympy/matrices/matrices.py b/sympy/matrices/matrices.py
index ba5d3a75c909..ce53653cc5f2 100644
--- a/sympy/matrices/matrices.py
+++ b/sympy/matrices/matrices.py
@@ -211,7 +211,7 @@ def bareiss(mat, cumm=1):
def entry(i, j):
ret = (pivot_val*tmp_mat[i, j + 1] - mat[pivot_pos, ... | diff --git a/sympy/solvers/tests/test_recurr.py b/sympy/solvers/tests/test_recurr.py
index 40b4989fa283..0bc745b0df2c 100644
--- a/sympy/solvers/tests/test_recurr.py
+++ b/sympy/solvers/tests/test_recurr.py
@@ -202,3 +202,8 @@ def test_issue_6844():
f = y(n + 2) - y(n + 1) + y(n)/4
assert rsolve(f, y(n)) == 2... | true | {
"sympy/solvers/tests/test_recurr.py::test_issue_15751": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_recurr.py::test_rsolve": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_recurr.py::test_rsolve_poly": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_recurr.py::test_rsolve_ratio": {
"run": "PASS",... | {
"sympy/solvers/tests/test_recurr.py::test_issue_15751": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 7,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_recurr.py::test_rsolve",
"sympy/solvers/tests/test_recurr.py::test_rsolve_poly",
"sympy/solvers/tests/test_recurr.py::test_rsolve_ratio",
"sympy/solvers/tests/test_recurr.py::test_rsolve_hyper... | {
"passed_count": 7,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_recurr.py::test_rsolve",
"sympy/solvers/tests/test_recurr.py::test_rsolve_poly",
"sympy/solvers/tests/test_recurr.py::test_rsolve_ratio",
"sympy/solvers/tests/test_recurr.py::test_rsolve_hyper... | {
"passed_count": 8,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_recurr.py::test_rsolve",
"sympy/solvers/tests/test_recurr.py::test_rsolve_poly",
"sympy/solvers/tests/test_recurr.py::test_rsolve_ratio",
"sympy/solvers/tests/test_recurr.py::test_rsolve_hyper... | sympy__sympy-15752 | |
sympy | sympy | 15,855 | closed | Fixed summation in summation(x**y*y, (y, -oo, oo)).doit() to prevent infinite loop | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-issues... | {
"label": "sympy:master",
"ref": "master",
"sha": "1e999fc5159b830a9872b86675bc5f3692a9c1be"
} | [
{
"number": 15852,
"title": "summation(x**y*y, (y, -oo, oo)).doit() hangs in infinite loop",
"body": "```\r\nfrom sympy import symbols, summation, oo\r\ny = symbols('y', integer=True)\r\nx = symbols('x')\r\nsummation(x**y*y, (y, -oo, oo)).doit()\r\n```\r\n\r\nHangs. The reason seems to be that `And(Abs(... | diff --git a/sympy/concrete/summations.py b/sympy/concrete/summations.py
index 55dbba7de50c..cfa279cfd73f 100644
--- a/sympy/concrete/summations.py
+++ b/sympy/concrete/summations.py
@@ -1175,7 +1175,7 @@ def eval_sum_hyper(f, i_a_b):
res1, cond1 = res1
res2, cond2 = res2
cond = And(cond1, co... | diff --git a/sympy/concrete/tests/test_sums_products.py b/sympy/concrete/tests/test_sums_products.py
index 1b8d710279fe..dcdd0e2b7996 100644
--- a/sympy/concrete/tests/test_sums_products.py
+++ b/sympy/concrete/tests/test_sums_products.py
@@ -1078,3 +1078,6 @@ def test_Sum_dummy_eq():
assert Sum(x, (x, a, c)).dumm... | true | {
"sympy/concrete/tests/test_sums_products.py::test_issue_15852": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/concrete/tests/test_sums_products.py::test_is_zero": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/concrete/tests/test_sums_products.py::test_issue_4171": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/concrete/tests/test_sums_products.py::test_rational_pr... | {
"sympy/concrete/tests/test_sums_products.py::test_issue_15852": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 61,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/concrete/tests/test_sums_products.py::test_is_zero",
"sympy/concrete/tests/test_sums_products.py::test_issue_4171",
"sympy/concrete/tests/test_sums_products.py::test_rational_products",
"sympy/concrete/tests/te... | {
"passed_count": 61,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/concrete/tests/test_sums_products.py::test_is_zero",
"sympy/concrete/tests/test_sums_products.py::test_issue_4171",
"sympy/concrete/tests/test_sums_products.py::test_rational_products",
"sympy/concrete/tests/te... | {
"passed_count": 62,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/concrete/tests/test_sums_products.py::test_is_zero",
"sympy/concrete/tests/test_sums_products.py::test_issue_4171",
"sympy/concrete/tests/test_sums_products.py::test_rational_products",
"sympy/concrete/tests/te... | sympy__sympy-15855 | |
sympy | sympy | 17,010 | closed | Fixed some issues with negative indexes for Laguerre polynomials | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-issues... | {
"label": "sympy:master",
"ref": "master",
"sha": "c36eaa91c111d7052f49b58744beb2c8afae9182"
} | [
{
"number": 13134,
"title": "Some uses of could_extract_minus_sign can lead to infinite recursion",
"body": "The issue coming from https://github.com/sympy/sympy/issues/13102 was fixed, but there is another issue has come up in my pull request https://github.com/sympy/sympy/pull/13059. Several places in... | diff --git a/sympy/functions/special/polynomials.py b/sympy/functions/special/polynomials.py
index 361ba77c20b2..1a70f98794e3 100644
--- a/sympy/functions/special/polynomials.py
+++ b/sympy/functions/special/polynomials.py
@@ -601,7 +601,7 @@ def eval(cls, n, x):
if n == S.NegativeOne:
... | diff --git a/sympy/functions/special/tests/test_spec_polynomials.py b/sympy/functions/special/tests/test_spec_polynomials.py
index b6c235c64427..dd425472efeb 100644
--- a/sympy/functions/special/tests/test_spec_polynomials.py
+++ b/sympy/functions/special/tests/test_spec_polynomials.py
@@ -8,7 +8,8 @@
from sympy.core.... | true | {
"sympy/functions/special/tests/test_spec_polynomials.py::test_laguerre": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
},
"sympy/functions/special/tests/test_spec_polynomials.py::test_chebyshev": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/functions/special/tests/test_spec_polynomials.py::test_assoc_laguerre": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/special/tests/test_spec_polynomials.py::test_legendre": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/special/tests/t... | {
"sympy/functions/special/tests/test_spec_polynomials.py::test_laguerre": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
},
"sympy/functions/special/tests/test_spec_polynomials.py::test_chebyshev": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 8,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"sympy/functions/special/tests/test_spec_polynomials.py::test_assoc_laguerre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_laguerre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_legendre... | {
"passed_count": 6,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/special/tests/test_spec_polynomials.py::test_assoc_laguerre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_legendre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_assoc_le... | {
"passed_count": 8,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/special/tests/test_spec_polynomials.py::test_assoc_laguerre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_laguerre",
"sympy/functions/special/tests/test_spec_polynomials.py::test_legendre... | sympy__sympy-17010 | |
sympy | sympy | 17,329 | closed | Check for infinite iteration in calculus.util.function_range() |
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234". See
https://github.com/blog/1506-closing-is... | {
"label": "sympy:master",
"ref": "master",
"sha": "c91f596b651f137df6fc252b50418df0ccc55745"
} | [
{
"number": 13273,
"title": "function_range keeps iterating over infinite critical points of ImageSet solution",
"body": "`function_range(sin(x)*exp(x) - 1, x, S.Reals)` hangs forever as it keeps iterating over critical points in the following:\r\n\r\n```python\r\nUnion(ImageSet(Lambda(_n, 2*_n*pi + 3*p... | diff --git a/sympy/calculus/util.py b/sympy/calculus/util.py
index 90fce092429f..728d17fbe5f1 100644
--- a/sympy/calculus/util.py
+++ b/sympy/calculus/util.py
@@ -10,6 +10,7 @@
from sympy.polys.rationaltools import together
from sympy.sets.sets import (Interval, Intersection, FiniteSet, Union,
... | diff --git a/sympy/calculus/tests/test_util.py b/sympy/calculus/tests/test_util.py
index f5bc6663bc64..ebfbf5c71732 100644
--- a/sympy/calculus/tests/test_util.py
+++ b/sympy/calculus/tests/test_util.py
@@ -44,6 +44,8 @@ def test_function_range():
assert function_range(cos(x), x, S.EmptySet) == S.EmptySet
rai... | true | {
"sympy/calculus/tests/test_util.py::test_function_range": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/calculus/tests/test_util.py::test_is_convex": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_util.py::test_stationary_points": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_util.py::test_union_AccumBounds": {
"ru... | {
"sympy/calculus/tests/test_util.py::test_function_range": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 19,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_stationary_points",
"sympy/calculus/tests/test_util.py::test_union_AccumBounds",
"sympy/calculus/tests/test_util.py::test_lcim",
"sympy/calculus/tests/test_util.py::test_contai... | {
"passed_count": 18,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_is_convex",
"sympy/calculus/tests/test_util.py::test_stationary_points",
"sympy/calculus/tests/test_util.py::test_union_AccumBounds",
"sympy/calculus/tests/test_util.py::test_m... | {
"passed_count": 19,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_util.py::test_stationary_points",
"sympy/calculus/tests/test_util.py::test_union_AccumBounds",
"sympy/calculus/tests/test_util.py::test_lcim",
"sympy/calculus/tests/test_util.py::test_contai... | sympy__sympy-17329 | |
sympy | sympy | 20,754 | closed | Added checks in _eval_as_leading_term and _eval_nseries | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "ea69b165a57ebf7b58a774a61e4c50caf5efadc1"
} | [
{
"number": 20704,
"title": "Limit not terminating",
"body": "The following limit does not terminate, it does not give a `RecursionError` either, it just keeps computing for a long time (for a few minutes at least, did not try ahead of that). I am attaching the output on running with `SYMPY_DEBUG=True`\... | diff --git a/sympy/functions/elementary/complexes.py b/sympy/functions/elementary/complexes.py
index 6d7ea7c98906..2d908216f1f0 100644
--- a/sympy/functions/elementary/complexes.py
+++ b/sympy/functions/elementary/complexes.py
@@ -653,11 +653,7 @@ def _eval_nseries(self, x, n, logx, cdir=0):
if direction.has(l... | diff --git a/sympy/series/tests/test_gruntz.py b/sympy/series/tests/test_gruntz.py
index c1b2b55db310..af4520f2d068 100644
--- a/sympy/series/tests/test_gruntz.py
+++ b/sympy/series/tests/test_gruntz.py
@@ -386,9 +386,7 @@ def test_limit4():
def test_MrvTestCase_page47_ex3_21():
h = exp(-x/(1 + exp(-x)))
exp... | true | {
"sympy/series/tests/test_limits.py::test_issue_9449": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/series/tests/test_limits.py::test_floor_requires_robust_assumptions": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/series/tests/test_limits.py::test_issue_14393": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/series/tests/test_limits.py::test_issue_19770... | {
"sympy/series/tests/test_limits.py::test_issue_9449": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 123,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_issue_14393",
"sympy/series/tests/test_limits.py::test_issue_11496",
"sympy/series/tests/test_limits.py::test_issue_18992",
"sympy/series/tests/test_limits.py::test_issue_8229... | {
"passed_count": 126,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_issue_14393",
"sympy/series/tests/test_limits.py::test_issue_11496",
"sympy/series/tests/test_limits.py::test_issue_18992",
"sympy/series/tests/test_limits.py::test_issue_8229... | {
"passed_count": 127,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/series/tests/test_limits.py::test_issue_14393",
"sympy/series/tests/test_limits.py::test_issue_11496",
"sympy/series/tests/test_limits.py::test_issue_18992",
"sympy/series/tests/test_limits.py::test_issue_8229... | sympy__sympy-20754 | |
sympy | sympy | 21,032 | closed | Improved handling of radicals by solveset | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "1a84db6a20ee606c0e6388267151f8d73145fa1c"
} | [
{
"number": 21004,
"title": "Infinte recursion error when using maximum ",
"body": "```\r\n>>> sympy.__version__\r\n'1.8.dev'\r\n````\r\n\r\n```\r\n>>> from sympy import *\r\n>>> from sympy.abc import x,y\r\n>>> f = x/sqrt(x**2+1)\r\n>>> maximum(f,x)\r\nTraceback (most recent call last):\r\n File \"<s... | diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py
index 65e1ef0d2edf..06d30cbdea09 100644
--- a/sympy/solvers/solvers.py
+++ b/sympy/solvers/solvers.py
@@ -3296,7 +3296,7 @@ def _take(d, take_int_pow):
eq = _mexpand(eq, recursive=True)
if eq.is_number:
- return
+ return eq, []
... | diff --git a/sympy/calculus/tests/test_util.py b/sympy/calculus/tests/test_util.py
index fdb261dea05a..510fb12741ba 100644
--- a/sympy/calculus/tests/test_util.py
+++ b/sympy/calculus/tests/test_util.py
@@ -42,6 +42,7 @@ def test_function_range():
assert function_range(cos(x), x, Interval(-oo, -4)
) == In... | true | {
"sympy/solvers/tests/test_solvers.py::test_pr_21032": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_solvers.py::test_issue_5767": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_rewrite_trig": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_issue_8828": {
"run": "... | {
"sympy/solvers/tests/test_solvers.py::test_pr_21032": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 120,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_8828",
"sympy/solvers/tests/test_solvers.py::test_issue_13849",
"sympy/solvers/tests/test_solvers.py::test_issue_12024",
"sympy/solvers/tests/test_solvers.py::test_iss... | {
"passed_count": 119,
"failed_count": 3,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_8828",
"sympy/solvers/tests/test_solvers.py::test_issue_13849",
"sympy/solvers/tests/test_solvers.py::test_issue_12024",
"sympy/solvers/tests/test_solvers.py::test_iss... | {
"passed_count": 120,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_8828",
"sympy/solvers/tests/test_solvers.py::test_issue_13849",
"sympy/solvers/tests/test_solvers.py::test_issue_12024",
"sympy/solvers/tests/test_solvers.py::test_iss... | sympy__sympy-21032 | |
sympy | sympy | 21,487 | closed | Ensure finite order before expanding bessel functions | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "092648d6b4f23a1bd27942a50b5f44a19540efaa"
} | [
{
"number": 21486,
"title": "expand_func(besselj(oo, x)) -> RecursionError",
"body": "```\r\nfrom sympy import *\r\nfrom sympy.abc import x\r\nexpand_func(besselj(oo, x))\r\n...\r\n line 86, in _eval_expand_func\r\n if (nu - 1).is_extended_positive:\r\n...\r\nRecursionError: maximum recursion depth e... | diff --git a/sympy/functions/special/bessel.py b/sympy/functions/special/bessel.py
index c57b2dadb7c3..0a145d768f69 100644
--- a/sympy/functions/special/bessel.py
+++ b/sympy/functions/special/bessel.py
@@ -82,11 +82,11 @@ def _eval_is_meromorphic(self, x, a):
def _eval_expand_func(self, **hints):
nu, z... | diff --git a/sympy/functions/special/tests/test_bessel.py b/sympy/functions/special/tests/test_bessel.py
index 267d8f12c132..1ce62c8242f6 100644
--- a/sympy/functions/special/tests/test_bessel.py
+++ b/sympy/functions/special/tests/test_bessel.py
@@ -218,6 +218,10 @@ def test_expand():
for besselx in [bessely, bes... | true | {
"sympy/functions/special/tests/test_bessel.py::test_expand": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/functions/special/tests/test_bessel.py::test_jn_zeros": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/special/tests/test_bessel.py::test_bessely_series": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/special/tests/test_bessel.py::test_... | {
"sympy/functions/special/tests/test_bessel.py::test_expand": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 24,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/special/tests/test_bessel.py::test_jn_zeros",
"sympy/functions/special/tests/test_bessel.py::test_bessely_series",
"sympy/functions/special/tests/test_bessel.py::test_besselj_series",
"sympy/functions... | {
"passed_count": 23,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/special/tests/test_bessel.py::test_jn_zeros",
"sympy/functions/special/tests/test_bessel.py::test_bessely_series",
"sympy/functions/special/tests/test_bessel.py::test_besselj_series",
"sympy/functions... | {
"passed_count": 24,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/special/tests/test_bessel.py::test_jn_zeros",
"sympy/functions/special/tests/test_bessel.py::test_bessely_series",
"sympy/functions/special/tests/test_bessel.py::test_besselj_series",
"sympy/functions... | sympy__sympy-21487 | |
sympy | sympy | 23,175 | closed | Improve `gf_edf_zassenhaus()`. | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "c305a07e354f11f5e2a28ea8276357c8fbb3eb39"
} | [
{
"number": 23174,
"title": "Problem with `gf_edf_zassenhaus()`",
"body": "This:\r\n\r\n```python\r\nfrom sympy import Poly, cyclotomic_poly\r\n f = Poly(cyclotomic_poly(17), modulus=2)\r\n print(f.factor_list())\r\n```\r\n\r\nnever terminates.\r\n\r\nIt gets stuck in `gf_edf_zassenhaus()`.\r\n\r\... | diff --git a/sympy/polys/galoistools.py b/sympy/polys/galoistools.py
index cbf1af6e6de0..2d0e733ff033 100644
--- a/sympy/polys/galoistools.py
+++ b/sympy/polys/galoistools.py
@@ -1872,11 +1872,18 @@ def gf_edf_zassenhaus(f, n, p, K):
>>> gf_edf_zassenhaus([1,1,1,1], 1, 5, ZZ)
[[1, 1], [1, 2], [1, 3]]
... | diff --git a/sympy/polys/tests/test_galoistools.py b/sympy/polys/tests/test_galoistools.py
index 010f3e493970..f17fb0d2e1e4 100644
--- a/sympy/polys/tests/test_galoistools.py
+++ b/sympy/polys/tests/test_galoistools.py
@@ -620,6 +620,13 @@ def test_gf_edf():
assert gf_edf_shoup(f, 2, 3, ZZ) == g
+def test_issu... | true | {
"sympy/polys/tests/test_galoistools.py::test_issue_23174": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/polys/tests/test_galoistools.py::test_gf_from_to_int_poly": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/polys/tests/test_galoistools.py::test_gf_diff": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/polys/tests/test_galoistools.py::test_gf_csolve": {
... | {
"sympy/polys/tests/test_galoistools.py::test_issue_23174": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 33,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_galoistools.py::test_gf_from_to_int_poly",
"sympy/polys/tests/test_galoistools.py::test_gf_diff",
"sympy/polys/tests/test_galoistools.py::test_gf_csolve",
"sympy/polys/tests/test_galoistools.py... | {
"passed_count": 33,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_galoistools.py::test_gf_from_to_int_poly",
"sympy/polys/tests/test_galoistools.py::test_gf_diff",
"sympy/polys/tests/test_galoistools.py::test_gf_csolve",
"sympy/polys/tests/test_galoistools.py... | {
"passed_count": 34,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_galoistools.py::test_gf_from_to_int_poly",
"sympy/polys/tests/test_galoistools.py::test_gf_diff",
"sympy/polys/tests/test_galoistools.py::test_gf_csolve",
"sympy/polys/tests/test_galoistools.py... | sympy__sympy-23175 | |
sympy | sympy | 23,493 | closed | calculus : Fixes is_increasing() cases which undergo infinite recursive loop through periodicity() | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "918eb81f4bb3ae062cef98a9dcb9ecda058e33d5"
} | [
{
"number": 23401,
"title": "is_increasing() function can lead to periodicity() infinite recursive loop",
"body": "**Environment:**\r\nWindows 10\r\nPython 3.9\r\nSympy 1.10.1\r\nRunning in VsCode Jupyter Notebook\r\n\r\n**Explanation:**\r\nSome expressions can cause the is_increasing() function to lead... | diff --git a/sympy/calculus/util.py b/sympy/calculus/util.py
index 4f6ada07f123..fc2910b8e777 100644
--- a/sympy/calculus/util.py
+++ b/sympy/calculus/util.py
@@ -480,7 +480,7 @@ def _check(orig_f, period):
elif f.is_Mul:
coeff, g = f.as_independent(symbol, as_Add=False)
- if isinstance(g, Trigon... | diff --git a/sympy/calculus/tests/test_singularities.py b/sympy/calculus/tests/test_singularities.py
index 08036b5a1184..2a86be98bbb6 100644
--- a/sympy/calculus/tests/test_singularities.py
+++ b/sympy/calculus/tests/test_singularities.py
@@ -93,3 +93,9 @@ def test_is_monotonic():
assert not is_monotonic(-x**2, S.... | true | {
"sympy/calculus/tests/test_singularities.py::test_issue_23401": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/calculus/tests/test_singularities.py::test_is_strictly_decreasing": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_singularities.py::test_is_decreasing": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/calculus/tests/test_singularities.py... | {
"sympy/calculus/tests/test_singularities.py::test_issue_23401": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 6,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_singularities.py::test_is_increasing",
"sympy/calculus/tests/test_singularities.py::test_singularities",
"sympy/calculus/tests/test_singularities.py::test_is_strictly_increasing",
"sympy/calc... | {
"passed_count": 6,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_singularities.py::test_is_increasing",
"sympy/calculus/tests/test_singularities.py::test_singularities",
"sympy/calculus/tests/test_singularities.py::test_is_strictly_increasing",
"sympy/calc... | {
"passed_count": 7,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/calculus/tests/test_singularities.py::test_is_increasing",
"sympy/calculus/tests/test_singularities.py::test_singularities",
"sympy/calculus/tests/test_singularities.py::test_is_strictly_increasing",
"sympy/calc... | sympy__sympy-23493 | |
sympy | sympy | 24,826 | closed | Fix infinite recursion issues for cse for unevaluated expression | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "75691e5cbdb3dfda4c8164a217bac6a6434404f6"
} | [
{
"number": 24818,
"title": "Regression: RecursionError in cse since gh-24303",
"body": "I got a recursion error after updating SymPy to `master` in a project of mine, I managed to minimize the expression to a minimal reproducer: `cse(-1-UnevaluatedExpr(Symbol('x')+1))`\r\n\r\nHere's a shell session ide... | diff --git a/sympy/simplify/cse_main.py b/sympy/simplify/cse_main.py
index d603560f5992..3b7a2d966520 100644
--- a/sympy/simplify/cse_main.py
+++ b/sympy/simplify/cse_main.py
@@ -512,7 +512,14 @@ def _find_opts(expr):
list(map(_find_opts, expr.args))
if not isinstance(expr, MatrixExpr) and expr.coul... | diff --git a/sympy/simplify/tests/test_cse.py b/sympy/simplify/tests/test_cse.py
index df82df3b8438..c2f1c7eccfdf 100644
--- a/sympy/simplify/tests/test_cse.py
+++ b/sympy/simplify/tests/test_cse.py
@@ -5,6 +5,7 @@
from sympy.codegen.matrix_nodes import MatrixSolve
from sympy.core.add import Add
from sympy.core.cont... | true | {
"sympy/simplify/tests/test_cse.py::test_cse_unevaluated": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/simplify/tests/test_cse.py::test_postprocess_for_cse": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/simplify/tests/test_cse.py::test_unevaluated_mul": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/simplify/tests/test_cse.py::test_pow_invpow": {
"run"... | {
"sympy/simplify/tests/test_cse.py::test_cse_unevaluated": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 51,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/simplify/tests/test_cse.py::test_postprocess_for_cse",
"sympy/simplify/tests/test_cse.py::test_unevaluated_mul",
"sympy/simplify/tests/test_cse.py::test_pow_invpow",
"sympy/simplify/tests/test_cse.py::test_unev... | {
"passed_count": 51,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/simplify/tests/test_cse.py::test_postprocess_for_cse",
"sympy/simplify/tests/test_cse.py::test_unevaluated_mul",
"sympy/simplify/tests/test_cse.py::test_pow_invpow",
"sympy/simplify/tests/test_cse.py::test_unev... | {
"passed_count": 52,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/simplify/tests/test_cse.py::test_postprocess_for_cse",
"sympy/simplify/tests/test_cse.py::test_cse_unevaluated",
"sympy/simplify/tests/test_cse.py::test_unevaluated_mul",
"sympy/simplify/tests/test_cse.py::test... | sympy__sympy-24826 | |
sympy | sympy | 24,999 | closed | Avoid exp rewrites that evaluate back to Pow in solve() | This can lead to infinite recursion.
Fixes #24368
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes ... | {
"label": "sympy:master",
"ref": "master",
"sha": "1b64adc288e6e6bfdf35a9abf701f1141a03d67e"
} | [
{
"number": 24368,
"title": "RecursionError _solve _tsolve _vsolve in expression involving Mod and floor",
"body": "This expression was extracted from some PyTorch model shape expressions involving SymPy. We have discovered the expression in question is zero, and we would like to know if s2 is now stati... | diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py
index fcc7e13c3179..3a86454b242f 100644
--- a/sympy/solvers/solvers.py
+++ b/sympy/solvers/solvers.py
@@ -42,6 +42,7 @@
separatevars)
from sympy.simplify.sqrtdenest import sqrt_depth
from sympy.simplify.fu import TR1, TR2i
+from sympy.strategies.rl... | diff --git a/sympy/solvers/tests/test_solvers.py b/sympy/solvers/tests/test_solvers.py
index c13aa051c947..1c4b2fca8fa7 100644
--- a/sympy/solvers/tests/test_solvers.py
+++ b/sympy/solvers/tests/test_solvers.py
@@ -2,6 +2,7 @@
from sympy.core.add import Add
from sympy.core.containers import Tuple
from sympy.core.fun... | true | {
"sympy/solvers/tests/test_solvers.py::test_issue_24368": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_solvers.py::test_real_imag_splitting": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_issue_5849": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_issue_11538": {
... | {
"sympy/solvers/tests/test_solvers.py::test_issue_24368": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 128,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_real_imag_splitting",
"sympy/solvers/tests/test_solvers.py::test_issue_5849",
"sympy/solvers/tests/test_solvers.py::test_issue_11538",
"sympy/solvers/tests/test_solvers.py::... | {
"passed_count": 128,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_real_imag_splitting",
"sympy/solvers/tests/test_solvers.py::test_issue_5849",
"sympy/solvers/tests/test_solvers.py::test_issue_11538",
"sympy/solvers/tests/test_solvers.py::... | {
"passed_count": 129,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_real_imag_splitting",
"sympy/solvers/tests/test_solvers.py::test_issue_5849",
"sympy/solvers/tests/test_solvers.py::test_issue_11538",
"sympy/solvers/tests/test_solvers.py::... | sympy__sympy-24999 | |
sympy | sympy | 25,844 | closed | fix 25176 | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fixes #1234" (see
https://tinyurl.com/auto-closing for more i... | {
"label": "sympy:master",
"ref": "master",
"sha": "f11a15c8e399ba8efe258280441105657a5a2f75"
} | [
{
"number": 25176,
"title": "Timeout for solve(Eq((x - 5)**(-8), 3), x)",
"body": "```python\r\nfrom sympy import Symbol, solve, Eq\r\n\r\nx = Symbol('x')\r\nsolve(Eq((x - 5)**(-8), 3), x)\r\n```\r\n\r\nversion of sympy is 1.12"
}
] | diff --git a/sympy/core/mul.py b/sympy/core/mul.py
index 5704a3f4e900..660accba6067 100644
--- a/sympy/core/mul.py
+++ b/sympy/core/mul.py
@@ -581,6 +581,9 @@ def _gather(c_powers):
i = 0 # steps through num_rat which may grow
while i < len(num_rat):
bi, ei = num_rat[i]
+ if b... | diff --git a/sympy/core/tests/test_arit.py b/sympy/core/tests/test_arit.py
index cbce59da8bf1..90086b42894c 100644
--- a/sympy/core/tests/test_arit.py
+++ b/sympy/core/tests/test_arit.py
@@ -2461,3 +2461,7 @@ def test_issue_22453():
def test_issue_22613():
assert (0**(x - 2)).as_content_primitive() == (1, 0**(x -... | true | {
"sympy/solvers/tests/test_solvers.py::test_issue_25176": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/core/tests/test_arit.py::test_issue_25176": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_solve_args": {
"run": "PASS",... | {
"sympy/solvers/tests/test_solvers.py::test_issue_4671_4463_4467": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_issue_15307": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_issue_17949": {
... | {
"sympy/solvers/tests/test_solvers.py::test_issue_25176": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/core/tests/test_arit.py::test_issue_25176": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_solve_args": {
"run": "PASS",... | {} | {} | {
"passed_count": 229,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_4671_4463_4467",
"sympy/solvers/tests/test_solvers.py::test_issue_15307",
"sympy/solvers/tests/test_solvers.py::test_issue_17949",
"sympy/solvers/tests/test_solvers.py... | {
"passed_count": 227,
"failed_count": 4,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_4671_4463_4467",
"sympy/solvers/tests/test_solvers.py::test_issue_15307",
"sympy/solvers/tests/test_solvers.py::test_issue_17949",
"sympy/solvers/tests/test_solvers.py... | {
"passed_count": 230,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_issue_4671_4463_4467",
"sympy/solvers/tests/test_solvers.py::test_issue_15307",
"sympy/solvers/tests/test_solvers.py::test_issue_17949",
"sympy/solvers/tests/test_solvers.py... | sympy__sympy-25844 | |
sympy | sympy | 27,488 | closed | Fix infinite recursion error when vectors are defined incorrectly | #### References to other Issues or PRs
Fixes #27439
#### Brief description of what is fixed or changed
This PR addresses a bug where incorrectly defining a `Vector` caused an infinite recursion error.
The correct way to define a vector is documented in the [[SymPy documentation](https://docs.sympy.org/lat... | {
"label": "sympy:master",
"ref": "master",
"sha": "97e74c1a97d0cf08ef63be24921f5c9e620d3e68"
} | [
{
"number": 27439,
"title": "error in scalar multiplication of vectors",
"body": "There is an endless loop when doing scalar multiplication of vectors\n```\nimport sympy\nfrom sympy.vector import Vector\nprint(1*Vector(*sympy.symbols('a b c')))\n```\nnumpy: 2.2.1 \npython: 3.11.11 \nm... | diff --git a/.mailmap b/.mailmap
index 5a0ac713f422..8930f7b91d2d 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1285,7 +1285,7 @@ Roman Inflianskas <infroma@gmail.com>
Ronan Lamy <ronan.lamy@gmail.com> <Ronan.Lamy@normalesup.org>
Rudr Tiwari <rudrtiwari@gmail.com>
Rupesh Harode <rupeshharode@gmail.com>
-Rushabh Mehta <me... | diff --git a/sympy/vector/tests/test_vector.py b/sympy/vector/tests/test_vector.py
index 3635126186f8..ebb6d10cd74d 100644
--- a/sympy/vector/tests/test_vector.py
+++ b/sympy/vector/tests/test_vector.py
@@ -340,3 +340,6 @@ def test_scalar():
assert v1.is_scalar is False
assert (v1.dot(v2)).is_scalar is True
... | true | {
"sympy/vector/tests/test_vector.py::test_issue_27439": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/vector/tests/test_vector.py::test_vector_diff_integrate": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/vector/tests/test_vector.py::test_kind": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/vector/tests/test_vector.py::test_cross": {
"run": "PASS",
... | {
"sympy/vector/tests/test_vector.py::test_issue_27439": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 17,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/vector/tests/test_vector.py::test_vector_diff_integrate",
"sympy/vector/tests/test_vector.py::test_dot",
"sympy/vector/tests/test_vector.py::test_kind",
"sympy/vector/tests/test_vector.py::test_cross",
"sym... | {
"passed_count": 17,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/vector/tests/test_vector.py::test_vector_diff_integrate",
"sympy/vector/tests/test_vector.py::test_dot",
"sympy/vector/tests/test_vector.py::test_kind",
"sympy/vector/tests/test_vector.py::test_cross",
"sym... | {
"passed_count": 18,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/vector/tests/test_vector.py::test_vector_diff_integrate",
"sympy/vector/tests/test_vector.py::test_dot",
"sympy/vector/tests/test_vector.py::test_kind",
"sympy/vector/tests/test_vector.py::test_cross",
"sym... | sympy__sympy-27488 | |
sympy | sympy | 27,537 | closed | Improve performance when solving equations with large floating-point values | <!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
Fixes #27528
#### Brief description of what is fixed or changed
This pull request addresses a performance issue in SymPy related to solving equat... | {
"label": "sympy:master",
"ref": "master",
"sha": "f07466ae38d6f7985c4e9eec2c7dfff43fec3cf7"
} | [
{
"number": 27528,
"title": "Performance issue when solving expressions with log in them",
"body": "sympy 1.13.3\npython 3.9.5\n\nThe below discussion resulted in an easy-to-reproduce sample expression which exposes a performance issue:\n```\nIn [39]: e = 1000000000*log(10)/(1000000000*z - 1123456789*lo... | diff --git a/.mailmap b/.mailmap
index 96d2fee978ea..3e4f9a6040af 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1,190 +1,191 @@
-# The .mailmap file
-# =================
+
#
-# This file records the name and email address of each contributor to SymPy as
-# it should appear in the AUTHORS file. Contributors should not updat... | diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py
index b5092f0be53a..bcce49459a9d 100644
--- a/sympy/core/tests/test_numbers.py
+++ b/sympy/core/tests/test_numbers.py
@@ -1,4 +1,5 @@
import numbers as nums
+import timeit
import decimal
from sympy.concrete.summations import Sum
from s... | true | {
"sympy/core/tests/test_numbers.py::test_27537_real_f2p": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/core/tests/test_numbers.py::test_issue_3692": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_numbers.py::test_exponentiation_of_0": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_numbers.py::test_issue_24543": {
"run": "P... | {
"sympy/core/tests/test_numbers.py::test_27537_real_f2p": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 110,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_mod_inverse",
"sympy/core/tests/test_numbers.py::test_mod",
"sympy/core/tests/test_numbers.py::test_equal_valued",
"sympy/core/tests/test_numbers.py::test_igcdex",
"sympy/c... | {
"passed_count": 110,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_mod_inverse",
"sympy/core/tests/test_numbers.py::test_mod",
"sympy/core/tests/test_numbers.py::test_equal_valued",
"sympy/core/tests/test_numbers.py::test_igcdex",
"sympy/c... | {
"passed_count": 111,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_mod_inverse",
"sympy/core/tests/test_numbers.py::test_mod",
"sympy/core/tests/test_numbers.py::test_equal_valued",
"sympy/core/tests/test_numbers.py::test_igcdex",
"sympy/c... | sympy__sympy-27537 | |
sympy | sympy | 27,735 | closed | satisfiable: Fix infinite loop in theory conflict clause handling | Fixes #27733
Previously, when the theory solver detected a conflict, it sometimes repeatedly added the same conflict clause without backtracking, causing an infinite loop. This commit ensures that a conflict clause is added only once, and dpll2 properly backtracks to unassign conflicting literals.
#### Release No... | {
"label": "sympy:master",
"ref": "master",
"sha": "bfdb8d51c1064a51a9ba050c608b92ba7de9eabc"
} | [
{
"number": 27733,
"title": "satisfiable stuck in infinite loop when using an SMT theory",
"body": "\nThe following seems to be stuck in an infinite loop:\n```python\nfrom sympy.assumptions.cnf import EncodedCNF\nfrom sympy import Dummy\nfrom sympy.abc import x, y\nfrom sympy import satisfiable, Q\n\ncl... | diff --git a/sympy/logic/algorithms/dpll2.py b/sympy/logic/algorithms/dpll2.py
index 75115e01efb2..4f18c81189d6 100644
--- a/sympy/logic/algorithms/dpll2.py
+++ b/sympy/logic/algorithms/dpll2.py
@@ -239,6 +239,10 @@ def _find_model(self):
else:
self._simple_add_learned_clau... | diff --git a/sympy/logic/tests/test_inference.py b/sympy/logic/tests/test_inference.py
index 2b6f49224d64..ff37b1b104f6 100644
--- a/sympy/logic/tests/test_inference.py
+++ b/sympy/logic/tests/test_inference.py
@@ -379,3 +379,18 @@ def make_random_cnf(num_clauses=5, num_constraints=10, num_var=2):
lra_dpll2_sa... | true | {
"sympy/logic/tests/test_inference.py::test_issue_27733": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/logic/tests/test_inference.py::test_dpll": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/logic/tests/test_inference.py::test_pl_true_wrong_input": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/logic/tests/test_inference.py::test_satisfiable_non_symbols": ... | {
"sympy/logic/tests/test_inference.py::test_issue_27733": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 22,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/logic/tests/test_inference.py::test_satisfiable_non_symbols",
"sympy/logic/tests/test_inference.py::test_find_pure_symbol_int_repr",
"sympy/logic/tests/test_inference.py::test_unit_clause_int_repr",
"sympy/logi... | {
"passed_count": 22,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/logic/tests/test_inference.py::test_satisfiable_non_symbols",
"sympy/logic/tests/test_inference.py::test_find_pure_symbol_int_repr",
"sympy/logic/tests/test_inference.py::test_unit_clause_int_repr",
"sympy/logi... | {
"passed_count": 23,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/logic/tests/test_inference.py::test_issue_27733",
"sympy/logic/tests/test_inference.py::test_satisfiable_non_symbols",
"sympy/logic/tests/test_inference.py::test_find_pure_symbol_int_repr",
"sympy/logic/tests/t... | sympy__sympy-27735 | |
sympy | sympy | 27,871 | closed | Guard harmonic(n) against full evaluation for large n | #### References to other Issues or PRs
Fixes #27853
#### Brief description of what is fixed or changed
This PR improves the performance and robustness of the `harmonic(n)` function by avoiding full symbolic evaluation when `n > 10**5`.
Previously, evaluating large harmonic numbers like `harmonic(10**6)` cou... | {
"label": "sympy:master",
"ref": "master",
"sha": "a0ff7f74b686b788dd11171902f73efdb6d33307"
} | [
{
"number": 27853,
"title": "Improve Performance and Handle Large Integer Conversion in harmonic(n)",
"body": "\nI recently Played with harmonic and I tested some number.\n#### 1. n=10000\n```\n>>> from sympy import harmonic\n>>> harmonic(10000)\n```\n#### Output\n```\nTraceback (most recent call last):... | diff --git a/.mailmap b/.mailmap
index 5ba2c8bf0c07..fca7af2788cd 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1,190 +1,190 @@
-# The .mailmap file
-# =================
#
-# This file records the name and email address of each contributor to SymPy as
-# it should appear in the AUTHORS file. Contributors should not update ... | diff --git a/sympy/functions/combinatorial/tests/test_comb_numbers.py b/sympy/functions/combinatorial/tests/test_comb_numbers.py
index 83a7de89ed8e..cdb7e871836d 100644
--- a/sympy/functions/combinatorial/tests/test_comb_numbers.py
+++ b/sympy/functions/combinatorial/tests/test_comb_numbers.py
@@ -370,6 +370,18 @@ def ... | true | {
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_large_harmonic_unevaluated": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_issue_8601": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_bernoulli": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/functions/combinatorial/... | {
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_large_harmonic_unevaluated": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 38,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_issue_8601",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_bernoulli",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_depr... | {
"passed_count": 38,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_issue_8601",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_bernoulli",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_depr... | {
"passed_count": 39,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_issue_8601",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_bernoulli",
"sympy/functions/combinatorial/tests/test_comb_numbers.py::test_depr... | sympy__sympy-27871 | |
sympy | sympy | 28,105 | closed | Lp bugfix | Fixes https://github.com/sympy/sympy/issues/28089 and https://github.com/sympy/sympy/issues/28104. Previously, these fixes were part of https://github.com/sympy/sympy/pull/28092, but I decided to separate them because there was too much going on in that PR.
#### Other comments
I've removed the oscillation checkin... | {
"label": "sympy:master",
"ref": "master",
"sha": "2a0fd4978d2055700250e4db67699f08aa03c95a"
} | [
{
"number": 28089,
"title": "LP solver may loop or give wrong answer on infeasible LPs",
"body": "The following is a relatively minimal example of a linear program that SymPy's `lpmin` handles incorrectly.\n\n```\n#!/usr/bin/env python3\nimport sympy\n\ns, t = sympy.symbols('s t')\n\ntarget = 5 # s\ncon... | diff --git a/sympy/solvers/simplex.py b/sympy/solvers/simplex.py
index c8e652cb6265..fc8170fb6684 100644
--- a/sympy/solvers/simplex.py
+++ b/sympy/solvers/simplex.py
@@ -298,9 +298,6 @@ def _simplex(A, B, C, D=None, dual=False):
# Phase 1: find a feasible solution or determine none exist
- ## keep track of... | diff --git a/sympy/solvers/tests/test_simplex.py b/sympy/solvers/tests/test_simplex.py
index 611205f5df00..07abef29d5e7 100644
--- a/sympy/solvers/tests/test_simplex.py
+++ b/sympy/solvers/tests/test_simplex.py
@@ -160,17 +160,13 @@ def test_simplex():
assert lpmin(x, [y >= 1, x >= y + z, x >= 0, z >= 0]
... | true | {
"sympy/solvers/tests/test_simplex.py::test_28104": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/solvers/tests/test_simplex.py::test_28089": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_simplex.py::test_lpmin_lpmax": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_simplex.py::test_simplex": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_simplex.py::test_linprog": {
"run": "PASS",
... | {
"sympy/solvers/tests/test_simplex.py::test_28104": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/solvers/tests/test_simplex.py::test_28089": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 4,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_simplex.py::test_lpmin_lpmax",
"sympy/solvers/tests/test_simplex.py::test_simplex",
"sympy/solvers/tests/test_simplex.py::test_linprog",
"sympy/solvers/tests/test_simplex.py::test_lp"
],
"... | {
"passed_count": 4,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_simplex.py::test_lpmin_lpmax",
"sympy/solvers/tests/test_simplex.py::test_simplex",
"sympy/solvers/tests/test_simplex.py::test_linprog",
"sympy/solvers/tests/test_simplex.py::test_lp"
],
"... | {
"passed_count": 6,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_simplex.py::test_simplex",
"sympy/solvers/tests/test_simplex.py::test_lp",
"sympy/solvers/tests/test_simplex.py::test_lpmin_lpmax",
"sympy/solvers/tests/test_simplex.py::test_28104",
"symp... | sympy__sympy-28105 | |
sympy | sympy | 28,162 | closed | [GSOC] Changed the Symbol setting of Length as Positive as optional choice |
#### References to other Issues or PRs
Fixes #24042
#### Brief description of what is fixed or changed
This pull request updates **beam.py** to automatically assume a positive beam length for symbolic computations, preventing infinite loops during limit evaluations of `SingularityFunction`. Specifically:
- ... | {
"label": "sympy:master",
"ref": "master",
"sha": "22fc107a94eaabc4f6eb31470b39db65abb7a394"
} | [
{
"number": 24042,
"title": "Limit with SingularityFunction takes forever",
"body": "(Sympy 1.11.1)\r\n\r\nI'm playing with the `Beam` class from the `sympy.physics.continuum_mechanics` module. I'm attempting to solve a simple beam with symbolic length and loads:\r\n\r\n```python\r\nfrom sympy import *\... | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index 7e575dd5622a..8928cd70078f 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -180,7 +180,16 @@ def __init__(self, length, elastic_modulus, second_moment, area=... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index a6a36fb030f9..557d1df7f3fa 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -253,6 +253,167 @@ def test_Beam():
... | true | {
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_without_positive_setting_6": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_without_positive_setting_7": {
"run": "NONE",
"test": "FAIL",... | {
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_statically_indeterminate": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_with_positive_setting_1": {
"run": "NONE",
"test": "PASS",
"fix": "PASS"
... | {
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_without_positive_setting_6": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_without_positive_setting_7": {
"run": "NONE",
"test": "FAIL",... | {} | {} | {
"passed_count": 27,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_statically_indeterminate",
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_insufficient_bconditions",
"sympy/physics/continuum_mechanics/tests/test_b... | {
"passed_count": 34,
"failed_count": 7,
"skipped_count": 0,
"passed_tests": [
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_statically_indeterminate",
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_with_positive_setting_1",
"sympy/physics/continuum_mechani... | {
"passed_count": 41,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_statically_indeterminate",
"sympy/physics/continuum_mechanics/tests/test_beam.py::test_symbolic_length_with_positive_setting_1",
"sympy/physics/continuum_mechani... | sympy__sympy-28162 | |
sympy | sympy | 7,900 | closed | 7895: watch for new atan2 upon splitting equation into real and imag parts | fixes #7895 (see issue for description)
Also, the test for issue 6121 was changed to a simple assertion since the
original issue involved an infinite recursion.
| {
"label": "sympy:master",
"ref": "master",
"sha": "71e74388a9372f5fc1819a6ffc4675a54478bd9c"
} | [
{
"number": 7895,
"title": "problem finding solution with real variable",
"body": "For some reason, when the variable in the following equation is declared to be real, no solution is found.\n\n```\n>>> from sympy import *;var('y',real=1)\ny\n>>> solve(y**(2/S(3)) - 3**(2/S(3)), y)\n[]\n\ntry using no ch... | diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py
index 9bc2b7b3a5cf..7b6dce0811e1 100644
--- a/sympy/solvers/solvers.py
+++ b/sympy/solvers/solvers.py
@@ -706,8 +706,10 @@ def _sympified_list(w):
freei = f[i].free_symbols
if freei and all(s.is_real or s.is_imaginary for s in freei):
... | diff --git a/sympy/core/tests/test_expand.py b/sympy/core/tests/test_expand.py
index 4ddad55b68fa..d99cac26da76 100644
--- a/sympy/core/tests/test_expand.py
+++ b/sympy/core/tests/test_expand.py
@@ -133,10 +133,7 @@ def test_expand_frac():
def test_issue_6121():
eq = -I*exp(-3*I*pi/4)/(4*pi**(S(3)/2)*sqrt(x))
-... | true | {
"sympy/solvers/tests/test_solvers.py::test_issue_7895": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/solvers/tests/test_solvers.py::test_solve_transcendental": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_expand.py::test_expand_a... | {
"sympy/solvers/tests/test_solvers.py::test_issue_7895": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 90,
"failed_count": 5,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_transcendental",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/core/tests/test_expand.py::test_expand_radicals",
"sympy/solvers/tests/te... | {
"passed_count": 90,
"failed_count": 6,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_transcendental",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/core/tests/test_expand.py::test_expand_radicals",
"sympy/solvers/tests/te... | {
"passed_count": 91,
"failed_count": 5,
"skipped_count": 0,
"passed_tests": [
"sympy/solvers/tests/test_solvers.py::test_solve_transcendental",
"sympy/solvers/tests/test_solvers.py::test_solve_undetermined_coeffs",
"sympy/core/tests/test_expand.py::test_expand_radicals",
"sympy/solvers/tests/te... | sympy__sympy-7900 | |
sympy | sympy | 9,029 | closed | rootof: fix numerical evaluation of RootOf | `RootOf._eval_evalf()` hangs in the case when the computed root lies on the boundary of the interval containing it. This occurs even in the following simple example.
```
In [1]: r = RootOf(x**2 + 1, 0, radicals=False)
In [2]: r.evalf() # hangs indefinitely
```
The solution is to allow for such boundary interval val... | {
"label": "sympy:master",
"ref": "master",
"sha": "ca31f6a08e18523ddf52ddb5c712e3cf6bfc2efe"
} | [
{
"number": 9019,
"title": "rootof: RootOf.evalf() infinite loop",
"body": "The following code hangs indefinitely:\n\n```\nIn [1]: r = RootOf(x**2 + 1, 0, radicals=False)\nIn [2]: r.evalf() # hangs indefinitely\n```\n\nUpon inspection, the issue occurs in `RootOf._eval_evalf()` inside an infinite (a `... | diff --git a/sympy/polys/rootoftools.py b/sympy/polys/rootoftools.py
index 3c5f4cb28f1c..c7b97fe9ab13 100644
--- a/sympy/polys/rootoftools.py
+++ b/sympy/polys/rootoftools.py
@@ -593,9 +593,9 @@ def _eval_evalf(self, prec):
# case and the interval will then be tightened -- and
... | diff --git a/sympy/polys/tests/test_rootoftools.py b/sympy/polys/tests/test_rootoftools.py
index 41915ed56fae..b1fb585af9cf 100644
--- a/sympy/polys/tests/test_rootoftools.py
+++ b/sympy/polys/tests/test_rootoftools.py
@@ -233,6 +233,11 @@ def test_RootOf_evalf():
# issue 8617
ans = [w.n(2) for w in solve(x**... | true | {
"sympy/polys/tests/test_rootoftools.py::test_RootOf_evalf": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/polys/tests/test_rootoftools.py::test_RootOf_diff": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/polys/tests/test_rootoftools.py::test_RootOf___new__": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/polys/tests/test_rootoftools.py::test_RootOf_attributes"... | {
"sympy/polys/tests/test_rootoftools.py::test_RootOf_evalf": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 24,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_rootoftools.py::test_RootOf_diff",
"sympy/polys/tests/test_rootoftools.py::test_issue_8316",
"sympy/polys/tests/test_rootoftools.py::test_RootOf_subs",
"sympy/polys/tests/test_rootoftools.py::t... | {
"passed_count": 23,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_rootoftools.py::test_RootOf_diff",
"sympy/polys/tests/test_rootoftools.py::test_issue_8316",
"sympy/polys/tests/test_rootoftools.py::test_RootOf_subs",
"sympy/polys/tests/test_rootoftools.py::t... | {
"passed_count": 24,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/polys/tests/test_rootoftools.py::test_RootOf_diff",
"sympy/polys/tests/test_rootoftools.py::test_issue_8316",
"sympy/polys/tests/test_rootoftools.py::test_RootOf_subs",
"sympy/polys/tests/test_rootoftools.py::t... | sympy__sympy-9029 | |
sympy | sympy | 9,493 | closed | Fix infinite recursion in oo**zoo. | Fixes #9491
| {
"label": "sympy:master",
"ref": "master",
"sha": "8e592a0a34fed68ba3b88a58251d3ed9fa5f020c"
} | [
{
"number": 9491,
"title": "oo**zoo",
"body": "oo**zoo give recursion error.\n"
}
] | diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py
index d1e4f02f4727..22d6dc94e817 100644
--- a/sympy/core/numbers.py
+++ b/sympy/core/numbers.py
@@ -2467,6 +2467,8 @@ def _eval_power(self, expt):
return S.Zero
if expt is S.NaN:
return S.NaN
+ if expt is S.ComplexInfin... | diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py
index c5f55372667d..b276249c85fa 100644
--- a/sympy/core/tests/test_numbers.py
+++ b/sympy/core/tests/test_numbers.py
@@ -1482,3 +1482,7 @@ def test_comp():
assert comp(sqrt(2).n(2), Float(1.4, 2), '')
raises(ValueError, lambda: ... | true | {
"sympy/core/tests/test_numbers.py::test_issue_9491": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/core/tests/test_numbers.py::test_real_bug": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_numbers.py::test_GoldenRatio_expand": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/core/tests/test_numbers.py::test_pi_Pi": {
"run": "PASS",
... | {
"sympy/core/tests/test_numbers.py::test_issue_9491": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 68,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_real_bug",
"sympy/core/tests/test_numbers.py::test_GoldenRatio_expand",
"sympy/core/tests/test_numbers.py::test_issue_3692",
"sympy/core/tests/test_numbers.py::test_pi_Pi",
... | {
"passed_count": 68,
"failed_count": 2,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_real_bug",
"sympy/core/tests/test_numbers.py::test_GoldenRatio_expand",
"sympy/core/tests/test_numbers.py::test_issue_3692",
"sympy/core/tests/test_numbers.py::test_pi_Pi",
... | {
"passed_count": 69,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/core/tests/test_numbers.py::test_real_bug",
"sympy/core/tests/test_numbers.py::test_GoldenRatio_expand",
"sympy/core/tests/test_numbers.py::test_issue_3692",
"sympy/core/tests/test_numbers.py::test_pi_Pi",
... | sympy__sympy-9493 | |
sympy | sympy | 9,844 | closed | WIP: Manualintegrate infinite recursion | Fixes https://github.com/sympy/sympy/issues/9841
`manualintegrate(3**x/5**x, x)` causes an infinite recursion where it would call:
`integral_steps` L930 -> `do_one_rl` L86 -> `do_one_rl` L86 -> `null_safe_rl` L66 -> `_alternatives L208` -> `substitution_rule` L743 -> `integral_steps` again
This is because the "possi... | {
"label": "sympy:master",
"ref": "master",
"sha": "a2f490f8abdd678549a94d84258085f161b84876"
} | [
{
"number": 9841,
"title": "manualintegrate((3**x+4**x)/5**x, x) takes long time",
"body": "```\nfrom sympy.integrals.manualintegrate import manualintegrate\nx = symbols('x')\nmanualintegrate((3**x+4**x)/5**x, x)\n```\n\nI'm not even sure if the manualintegrate terminates. The answer should be: https://... | diff --git a/sympy/integrals/manualintegrate.py b/sympy/integrals/manualintegrate.py
index 50d75d5f920b..566c331e9448 100644
--- a/sympy/integrals/manualintegrate.py
+++ b/sympy/integrals/manualintegrate.py
@@ -150,7 +150,7 @@ def possible_subterms(term):
return []
for u in possible_subterms(integrand):... | diff --git a/sympy/integrals/tests/test_manual.py b/sympy/integrals/tests/test_manual.py
index 6c968fb05957..da1e0dba7638 100644
--- a/sympy/integrals/tests/test_manual.py
+++ b/sympy/integrals/tests/test_manual.py
@@ -259,5 +259,13 @@ def test_issue_2850():
log(x**2 + 1)/2)*log(x) + log(x**2 + 1)/2 + Inte... | true | {
"sympy/integrals/tests/test_manual.py::test_issue_9841": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"sympy/integrals/tests/test_manual.py::test_issue_3796": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trigonometry": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"sympy/integrals/tests/test_manual.py::test_manualin... | {
"sympy/integrals/tests/test_manual.py::test_issue_9841": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 17,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/integrals/tests/test_manual.py::test_issue_3796",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trigonometry",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trig_substitution",
"symp... | {
"passed_count": 17,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"sympy/integrals/tests/test_manual.py::test_issue_3796",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trigonometry",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trig_substitution",
"symp... | {
"passed_count": 18,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"sympy/integrals/tests/test_manual.py::test_issue_3796",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trigonometry",
"sympy/integrals/tests/test_manual.py::test_manualintegrate_trig_substitution",
"symp... | sympy__sympy-9844 | |
aio-libs | aiohttp | 10,151 | closed | Fix infinite callback loop when time is not moving forward | <!-- Thank you for your contribution! -->
## What do these changes do?
If the keepalive handler is called too soon, it reschedules itself. The test used `now <= close_time`, which means that an exactly on-time notification is treated as "too soon", causing an automatic rescheduling. For real systems the time will... | {
"label": "aio-libs:master",
"ref": "master",
"sha": "7f8e2d35ad4d0d5fed82721060bafd1bafa264b8"
} | [
{
"number": 10149,
"title": "Infinite loop when used with async_solipsism",
"body": "### Describe the bug\n\nasync_solipsism is an event loop that uses fake time - good for unit tests. The keepalive logic in aiohttp assumes that loop.call_at will always call the handler strictly later than the requested... | diff --git a/CHANGES/10149.misc.rst b/CHANGES/10149.misc.rst
new file mode 100644
index 00000000000..61765a50fcf
--- /dev/null
+++ b/CHANGES/10149.misc.rst
@@ -0,0 +1,4 @@
+Fixed an infinite loop that can occur when using aiohttp in combination
+with `async-solipsism`_ -- by :user:`bmerry`.
+
+.. _async-solipsism: http... | diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
index 239aea4c25e..8b65d1e08fb 100644
--- a/tests/test_web_functional.py
+++ b/tests/test_web_functional.py
@@ -2312,3 +2312,41 @@ async def handler(request: web.Request) -> web.Response:
# Make 2nd request which will hit the race conditi... | true | {
"tests/test_web_functional.py::test_keepalive_expires_on_time[pyloop]": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_web_functional.py::test_response_with_bodypart[pyloop]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_web_functional.py::test_release_post_data[pyloop]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_web_functional.py::test_100_continue_cu... | {
"tests/test_web_functional.py::test_keepalive_expires_on_time[pyloop]": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 122,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"tests/test_web_functional.py::test_response_with_bodypart[pyloop]",
"tests/test_web_functional.py::test_release_post_data[pyloop]",
"tests/test_web_functional.py::test_100_continue_custom[pyloop]",
"tests/test_web_f... | {
"passed_count": 122,
"failed_count": 2,
"skipped_count": 2,
"passed_tests": [
"tests/test_web_functional.py::test_response_with_bodypart[pyloop]",
"tests/test_web_functional.py::test_release_post_data[pyloop]",
"tests/test_web_functional.py::test_100_continue_custom[pyloop]",
"tests/test_web_f... | {
"passed_count": 123,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"tests/test_web_functional.py::test_response_with_bodypart[pyloop]",
"tests/test_web_functional.py::test_release_post_data[pyloop]",
"tests/test_web_functional.py::test_100_continue_custom[pyloop]",
"tests/test_web_f... | aio-libs__aiohttp-10151 | |
aio-libs | aiohttp | 12,119 | closed | Fix server hang on chunked transfer encoding size mismatch | ## Summary
Fixes #10596.
When chunked transfer encoding `chunk-size` does not match the actual data length, the server hangs indefinitely instead of rejecting the request. Per RFC 9112, `chunk-data` must be exactly `chunk-size` octets followed by CRLF.
**Root cause:** In `PARSE_CHUNKED_CHUNK_EOF` state (after consum... | {
"label": "aio-libs:master",
"ref": "master",
"sha": "4d15c331137496127571e8a15f787020890a5abb"
} | [
{
"number": 10596,
"title": "Server hangs when chunk-size does not match actual data size in chunked transfer encoding",
"body": "### Describe the bug\n\nAiohttp does not properly handle chunked transfer encoding when the chunk-size does not match the actual data size. Instead of rejecting the request w... | diff --git a/CHANGES/10596.bugfix.rst b/CHANGES/10596.bugfix.rst
new file mode 100644
index 00000000000..f96a0215de3
--- /dev/null
+++ b/CHANGES/10596.bugfix.rst
@@ -0,0 +1,4 @@
+Fixed server hanging indefinitely when chunked transfer encoding chunk-size
+does not match actual data length. The server now raises
+``Tran... | diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py
index bfd84aae0d2..5c0a5f8841c 100644
--- a/tests/test_http_parser.py
+++ b/tests/test_http_parser.py
@@ -1747,6 +1747,36 @@ async def test_parse_chunked_payload_size_error(
p.feed_data(b"blah\r\n")
assert isinstance(out.exception(... | true | {
"tests/test_http_parser.py::TestParsePayload::test_parse_chunked_payload_size_data_mismatch": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_http_parser.py::TestDeflateBuffer::test_feed_data": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_http_parser.py... | {
"tests/test_http_parser.py::test_unpaired_surrogate_in_header_py[pyloop]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_http_parser.py::test_invalid_header_spacing[py-parser-pyloop-pre-NUL-post-TABSP-name-empty]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"te... | {
"tests/test_http_parser.py::TestParsePayload::test_parse_chunked_payload_size_data_mismatch": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_http_parser.py::TestDeflateBuffer::test_feed_data": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_http_parser.py... | {} | {} | {
"passed_count": 301,
"failed_count": 3,
"skipped_count": 1,
"passed_tests": [
"tests/test_http_parser.py::test_unpaired_surrogate_in_header_py[pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-(]",
"tests/test_http_parser.py::test_invalid_header_spacing[py-parser-pyloop-p... | {
"passed_count": 299,
"failed_count": 7,
"skipped_count": 1,
"passed_tests": [
"tests/test_http_parser.py::test_unpaired_surrogate_in_header_py[pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-(]",
"tests/test_http_parser.py::test_invalid_header_spacing[py-parser-pyloop-p... | {
"passed_count": 303,
"failed_count": 3,
"skipped_count": 1,
"passed_tests": [
"tests/test_http_parser.py::test_unpaired_surrogate_in_header_py[pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-(]",
"tests/test_http_parser.py::test_invalid_header_spacing[py-parser-pyloop-p... | aio-libs__aiohttp-12119 | |
pydantic | pydantic | 11,143 | closed | Make sure the type reference is removed from the seen references | As per https://github.com/pydantic/pydantic/pull/11037. Fixes https://github.com/pydantic/pydantic/issues/11024.
When parametrizing generic models, the `generic_recursion_self_type` context manager is entered, and is used to avoid infinite recursions if the same generic model happens to be parametrized again with th... | {
"label": "pydantic:main",
"ref": "main",
"sha": "c08eab22e3837a114c894ea4a7d1413c7fa2fbad"
} | [
{
"number": 11024,
"title": "v2.10.x: Raises `TypeError: mro() returned a non-class ('PydanticRecursiveRef')`",
"body": "### Initial Checks\n\n- [X] I confirm that I'm using Pydantic V2\n\n### Description\n\nAfter accidentally updating a package from 2.7.x to 2.10.x,\r\ngot an error message that I had n... | diff --git a/pydantic/_internal/_generics.py b/pydantic/_internal/_generics.py
index 327fede038a..7b57fc71cb8 100644
--- a/pydantic/_internal/_generics.py
+++ b/pydantic/_internal/_generics.py
@@ -429,7 +429,8 @@ def generic_recursion_self_type(
yield self_type
else:
previously_seen_t... | diff --git a/tests/test_generics.py b/tests/test_generics.py
index ea92e7aba7a..2d56d5a20a5 100644
--- a/tests/test_generics.py
+++ b/tests/test_generics.py
@@ -3178,3 +3178,41 @@ class Holder(BaseModel, Generic[T]):
holder2 = Holder(inner=Inner(inner=1))
# implies that validation succeeds for both
asser... | true | {
"tests/test_generics.py::test_generic_mro_multi_level": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_generics.py::test_deep_generic_with_referenced_inner_generic": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_generics.py::test_partial_specification": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_generics.py::test_serialize_typevars_defaul... | {
"tests/test_generics.py::test_generic_mro_multi_level": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 118,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"tests/test_generics.py::test_generic_field",
"tests/test_generics.py::test_must_inherit_from_generic",
"tests/test_generics.py::test_generic_mro_circular_typevar",
"tests/test_generics.py::test_generic_recursive_mod... | {
"passed_count": 118,
"failed_count": 1,
"skipped_count": 2,
"passed_tests": [
"tests/test_generics.py::test_generic_field",
"tests/test_generics.py::test_must_inherit_from_generic",
"tests/test_generics.py::test_generic_mro_circular_typevar",
"tests/test_generics.py::test_generic_recursive_mod... | {
"passed_count": 119,
"failed_count": 0,
"skipped_count": 2,
"passed_tests": [
"tests/test_generics.py::test_generic_field",
"tests/test_generics.py::test_must_inherit_from_generic",
"tests/test_generics.py::test_generic_mro_circular_typevar",
"tests/test_generics.py::test_generic_recursive_mod... | pydantic__pydantic-11143 | |
pydantic | pydantic | 12,799 | closed | fix: prevent RecursionError in __eq__ with circular model references | Fixes #10630
When a BaseModel instance has a self-referencing field (e.g., a.child = a), calling == triggers infinite recursion because __dict__ comparison recurses endlessly through the circular reference.
This adds a thread-local recursion guard that tracks (id(self), id(other)) pairs currently being compared. ... | {
"label": "pydantic:main",
"ref": "main",
"sha": "a910cae58661194d5a56b2f1300ebae9a8a747a3"
} | [
{
"number": 10630,
"title": "(๐) `RecursionError` in `==` when object has a reference to itself",
"body": "### Initial Checks\n\n- [X] I confirm that I'm using Pydantic V2\n\n### Description\n\n```\r\n [Previous line repeated 370 more times]\r\n File \"C:\\Users\\AMONGUS\\projects\\test\\.venv\\Lib\\... | diff --git a/pydantic/main.py b/pydantic/main.py
index 26fc876a008..d0f668024da 100644
--- a/pydantic/main.py
+++ b/pydantic/main.py
@@ -8,6 +8,7 @@
import operator
import sys
+import threading
import types
import warnings
from collections.abc import Generator, Mapping
@@ -116,6 +117,9 @@ def _private_setattr_ha... | diff --git a/tests/test_circular_eq.py b/tests/test_circular_eq.py
new file mode 100644
index 00000000000..fa269143002
--- /dev/null
+++ b/tests/test_circular_eq.py
@@ -0,0 +1,97 @@
+"""Tests for circular reference handling in BaseModel.__eq__ (GH-10630).
+
+When a BaseModel instance has a self-referencing field (e.g.,... | true | {
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_deep_circular_chain": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_mutual_circular_reference": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests... | {
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_same_object_self_ref": {
"run": "NONE",
"test": "PASS",
"fix": "PASS"
},
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_self_referencing_not_equal": {
"run": "NONE",
"test": "PASS",
"fix": "PASS"
},
"tes... | {
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_deep_circular_chain": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_mutual_circular_reference": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
},
"tests... | {} | {} | {
"passed_count": 0,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [],
"failed_tests": [],
"skipped_tests": []
} | {
"passed_count": 4,
"failed_count": 3,
"skipped_count": 0,
"passed_tests": [
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_normal_equality_unaffected",
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_same_object_self_ref",
"tests/test_circular_eq.py::TestCircularRe... | {
"passed_count": 7,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_self_referencing_not_equal",
"tests/test_circular_eq.py::TestCircularReferenceEquality::test_non_basemodel_comparison",
"tests/test_circular_eq.py::TestCircul... | pydantic__pydantic-12799 | |
Textualize | rich | 3,480 | closed | fix infinite loop in append | Fixes https://github.com/Textualize/rich/issues/3479 | {
"label": "Textualize:master",
"ref": "master",
"sha": "9ec419154102acce7363e3958bec6c261864d7fb"
} | [
{
"number": 3479,
"title": "[BUG] Infinite loop in Text.append",
"body": "Occurs when appending to self.\r\n\r\n```python\r\na = Text(\"one\", \"blue\")\r\na.append(a)\r\n```"
}
] | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e14bd69a65..63116cf011 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semanti... | diff --git a/tests/test_text.py b/tests/test_text.py
index 704462b454..1a22e79d2b 100644
--- a/tests/test_text.py
+++ b/tests/test_text.py
@@ -1001,3 +1001,14 @@ def test_append_tokens() -> None:
output = capture.get()
print(repr(output))
assert output == "long text that will be wrapped with a \ncontrol ... | true | {
"tests/test_text.py::test_append_loop_regression": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_text.py::test_wrap_cjk_mixed": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_text.py::test_tabs_to_spaces_spans[-4--expected_spans0]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_text.py::test_highlight_words": {
"run": "PASS",
"t... | {
"tests/test_text.py::test_append_loop_regression": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 95,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_text.py::test_wrap_cjk_mixed",
"tests/test_text.py::test_tabs_to_spaces_spans[-4--expected_spans0]",
"tests/test_text.py::test_stylize_negative_index",
"tests/test_text.py::test_stylize_before",
"tests... | {
"passed_count": 95,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"tests/test_text.py::test_wrap_cjk_mixed",
"tests/test_text.py::test_tabs_to_spaces_spans[-4--expected_spans0]",
"tests/test_text.py::test_stylize_negative_index",
"tests/test_text.py::test_stylize_before",
"tests... | {
"passed_count": 96,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_text.py::test_wrap_cjk_mixed",
"tests/test_text.py::test_tabs_to_spaces_spans[-4--expected_spans0]",
"tests/test_text.py::test_stylize_negative_index",
"tests/test_text.py::test_stylize_before",
"tests... | Textualize__rich-3480 | |
Textualize | rich | 3,979 | closed | Fix infinite loop in split_graphemes with zero-width leading characters | ## Summary
Fixes #3958.
When `split_graphemes()` encounters a character with cell width 0 (such as ANSI escape `\x1b`, codepoint 27) before any measured character has been seen, the `index` is never advanced, causing an infinite loop. This is a regression in 14.3.2 where `get_character_cell_size()` correctly started ... | {
"label": "Textualize:master",
"ref": "master",
"sha": "27701029082052c6541031b6f139097230253900"
} | [
{
"number": 3958,
"title": "[BUG] Strings with ANSI escape sequences can cause `Console.print()` to hang",
"body": "- [x] I've checked [docs](https://rich.readthedocs.io/en/latest/introduction.html) and [closed issues](https://github.com/Textualize/rich/issues?q=is%3Aissue+is%3Aclosed) for possible solu... | diff --git a/rich/cells.py b/rich/cells.py
index 31165957b9..86f25eed8e 100644
--- a/rich/cells.py
+++ b/rich/cells.py
@@ -197,6 +197,9 @@ def split_graphemes(
cell_length += 1
total_width += 1
spans[-1] = (start, index, cell_length)
+ el... | diff --git a/tests/test_cells.py b/tests/test_cells.py
index f101740a01..5237031ff9 100644
--- a/tests/test_cells.py
+++ b/tests/test_cells.py
@@ -204,3 +204,19 @@ def test_non_printable():
for ordinal in range(31):
character = chr(ordinal)
assert cell_len(character) == 0
+
+
+def test_split_grap... | true | {
"tests/test_cells.py::test_split_graphemes_ansi_escape": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_cells.py::test_split_text[\\U0001f469\\u200d\\U0001f527x-2-\\U0001f469\\u200d\\U0001f527-x]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_cells.py::test_split_graphemes[\\u308f\\u3055\\u3073-expected_spans4-6]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"... | {
"tests/test_cells.py::test_split_graphemes_ansi_escape": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 49,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_cells.py::test_split_text[\\U0001f469\\u200d\\U0001f527x-2-\\U0001f469\\u200d\\U0001f527-x]",
"tests/test_cells.py::test_split_graphemes[\\u308f\\u3055\\u3073-expected_spans4-6]",
"tests/test_cells.py::test_sp... | {
"passed_count": 49,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"tests/test_cells.py::test_split_text[\\U0001f469\\u200d\\U0001f527x-2-\\U0001f469\\u200d\\U0001f527-x]",
"tests/test_cells.py::test_split_graphemes[\\u308f\\u3055\\u3073-expected_spans4-6]",
"tests/test_cells.py::test_sp... | {
"passed_count": 50,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/test_cells.py::test_split_text[\\U0001f469\\u200d\\U0001f527x-2-\\U0001f469\\u200d\\U0001f527-x]",
"tests/test_cells.py::test_split_graphemes[\\u308f\\u3055\\u3073-expected_spans4-6]",
"tests/test_cells.py::test_sp... | Textualize__rich-3979 | |
tox-dev | tox | 3,745 | closed | ๐ fix(provision): skip requires with false environment markers | When a requirement in `requires` includes a PEP 508 environment marker that evaluates to false for the current interpreter (e.g. `virtualenv<20.22.0; python_version < "3.8"` on Python 3.14), tox enters an infinite provisioning loop. ๐ It repeatedly detects the requirement as "missing" because the installed version doe... | {
"label": "tox-dev:main",
"ref": "main",
"sha": "bdcd9d85556d8e53baa1167a8e65f7921ce11f96"
} | [
{
"number": 3136,
"title": "Infinite loop over automatically provisioned requirement with unmatched environment marker",
"body": "## Issue\r\n\r\nWhen attempting to auto-provision a tox environment with an unmet requirement masked by an environment marker.\r\n\r\n## Environment\r\n\r\nProvide at least:\... | diff --git a/docs/changelog/3136.bugfix.rst b/docs/changelog/3136.bugfix.rst
new file mode 100644
index 0000000000..6a905da5d6
--- /dev/null
+++ b/docs/changelog/3136.bugfix.rst
@@ -0,0 +1,3 @@
+Requirements in ``requires`` with environment markers that evaluate to false (e.g. ``virtualenv<20.22.0; python_version
+< "3... | diff --git a/tests/test_provision.py b/tests/test_provision.py
index fcd04bacb0..4450ca4ecd 100644
--- a/tests/test_provision.py
+++ b/tests/test_provision.py
@@ -149,6 +149,34 @@ def test_provision_requires_nok(tox_project: ToxProjectCreator) -> None:
)
+def test_provision_requires_skips_false_markers(tox_pro... | true | {
"tests/test_provision.py::test_provision_requires_skips_false_markers": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/test_provision.py::test_provision_no_recreate_json": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_provision.py::test_provision_default_arguments_exists[r]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/test_provision.py::test_provision_default_argu... | {
"tests/test_provision.py::test_provision_requires_skips_false_markers": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 12,
"failed_count": 0,
"skipped_count": 8,
"passed_tests": [
"tests/test_provision.py::test_provision_requires_nok",
"tests/test_provision.py::test_provision_no_recreate_json",
"tests/test_provision.py::test_provision_default_arguments_exists[r]",
"tests/test_provision.py::test... | {
"passed_count": 13,
"failed_count": 1,
"skipped_count": 8,
"passed_tests": [
"tests/test_provision.py::test_provision_requires_nok",
"tests/test_provision.py::test_provision_no_recreate_json",
"tests/test_provision.py::test_provision_default_arguments_exists[r]",
"tests/test_provision.py::test... | {
"passed_count": 14,
"failed_count": 0,
"skipped_count": 8,
"passed_tests": [
"tests/test_provision.py::test_provision_requires_nok",
"tests/test_provision.py::test_provision_no_recreate_json",
"tests/test_provision.py::test_provision_default_arguments_exists[r]",
"tests/test_provision.py::test... | tox-dev__tox-3745 | |
tox-dev | tox | 3,749 | closed | ๐ fix(config): break changedir/posargs circular dependency | Setting `change_dir = {posargs}` (or the INI equivalent `changedir = {posargs}`) causes a `RecursionError` because resolving `{posargs}` requires loading `change_dir` for path rewriting when `args_are_paths` is enabled (the default). ๐ This creates an infinite loop: `change_dir` needs `{posargs}`, which needs `change_... | {
"label": "tox-dev:main",
"ref": "main",
"sha": "b58b8257a296e11a84bed3d16239015e691b0006"
} | [
{
"number": 3062,
"title": "RecursionError with `changedir = {posargs}`",
"body": "## Issue\r\n\r\n<!-- Describe what's the expected behaviour and what you're observing. -->\r\n\r\n`changedir = {posargs}` in a recipe causes a `RecursionError`. See the below minimal repro for details.\r\n\r\n## Environm... | diff --git a/docs/changelog/3062.bugfix.rst b/docs/changelog/3062.bugfix.rst
new file mode 100644
index 0000000000..05f620ea42
--- /dev/null
+++ b/docs/changelog/3062.bugfix.rst
@@ -0,0 +1,1 @@
+Using ``{posargs}`` in ``change_dir`` no longer causes a ``RecursionError`` - by :user:`gaborbernat`.
diff --git a/src/tox/co... | diff --git a/tests/tox_env/test_tox_env_api.py b/tests/tox_env/test_tox_env_api.py
index b3b857434b..894471adc8 100644
--- a/tests/tox_env/test_tox_env_api.py
+++ b/tests/tox_env/test_tox_env_api.py
@@ -161,6 +161,20 @@ def test_disallow_pass_env_empty(tox_project: ToxProjectCreator) -> None:
assert "bar" in resul... | true | {
"tests/tox_env/test_tox_env_api.py::test_change_dir_posargs_no_recursion": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_match_ignore_case[A-*]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_match_ignore_case[a-*]": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/tox_env/tes... | {
"tests/tox_env/test_tox_env_api.py::test_change_dir_posargs_no_recursion": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 17,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/tox_env/test_tox_env_api.py::test_change_dir_is_created_if_not_exist",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_match_ignore_case[A-*]",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_ma... | {
"passed_count": 17,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"tests/tox_env/test_tox_env_api.py::test_change_dir_is_created_if_not_exist",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_match_ignore_case[A-*]",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_ma... | {
"passed_count": 18,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/tox_env/test_tox_env_api.py::test_change_dir_is_created_if_not_exist",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_match_ignore_case[A-*]",
"tests/tox_env/test_tox_env_api.py::test_tox_env_pass_env_ma... | tox-dev__tox-3749 | |
tox-dev | tox | 3,759 | closed | ๐ fix(config): defer TOML set_env string substitution | Using substitutions like `{env_site_packages_dir}` inside `set_env` in TOML format causes a `RecursionError` because the TOML loader eagerly resolves all string substitutions via `Unroll` before constructing `SetEnv`. This creates a circular dependency: `set_env` โ `env_site_packages_dir` โ `create_python_env()` โ `sys... | {
"label": "tox-dev:main",
"ref": "main",
"sha": "a4d8dabb3ed3736c00e2de14f8ed0dd419b2cc99"
} | [
{
"number": 3758,
"title": "RecursionError when TOML set_env uses {env_site_packages_dir}",
"body": "## Issue\n\nUsing `{env_site_packages_dir}` (or similar substitutions that trigger environment creation) inside `set_env` in TOML format causes `RecursionError: maximum recursion depth exceeded`.\n\nThe ... | diff --git a/docs/changelog/3758.bugfix.rst b/docs/changelog/3758.bugfix.rst
new file mode 100644
index 0000000000..b3f8b004b6
--- /dev/null
+++ b/docs/changelog/3758.bugfix.rst
@@ -0,0 +1,3 @@
+Fix ``RecursionError`` when TOML ``set_env`` contains substitutions like ``{env_site_packages_dir}`` that trigger config
+loa... | diff --git a/tests/config/source/test_toml_pyproject.py b/tests/config/source/test_toml_pyproject.py
index ecda3f32f7..f66a575331 100644
--- a/tests/config/source/test_toml_pyproject.py
+++ b/tests/config/source/test_toml_pyproject.py
@@ -419,6 +419,20 @@ def test_config_set_env_ref(tox_project: ToxProjectCreator) -> N... | true | {
"tests/config/source/test_toml_pyproject.py::test_config_set_env_substitution_deferred": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_replace_ref_env": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_with_legacy": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"tests/config/source/t... | {
"tests/config/source/test_toml_pyproject.py::test_config_set_env_substitution_deferred": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 32,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_replace_ref_env",
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_with_legacy",
"tests/config/source/test_toml_pyproject.py::test_config_in... | {
"passed_count": 32,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_replace_ref_env",
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_with_legacy",
"tests/config/source/test_toml_pyproject.py::test_config_in... | {
"passed_count": 33,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_replace_ref_env",
"tests/config/source/test_toml_pyproject.py::test_config_in_toml_with_legacy",
"tests/config/source/test_toml_pyproject.py::test_config_in... | tox-dev__tox-3759 | |
urllib3 | urllib3 | 4,974 | closed | Avoid infinite loop in `HTTPResponse.read_chunked` when `amt` is zero | #3797 didn't cover the `HTTPResponse.read_chunked`. `read_chunked(0)` still runs into infinite loop.
Fixes #3793
| {
"label": "urllib3:main",
"ref": "main",
"sha": "166dc208abeb9df6c8829607461381d801074195"
} | [
{
"number": 3793,
"title": "`HTTPResponse.stream` can fall into infinite loop when `amt` is zero",
"body": "### Subject\n\n`HTTPResponse.stream` generator can safely handle the situation when amt is positive integer, negative integer and `None`. However, `amt=0` can lead to catastrophic infinite loop (w... | diff --git a/changelog/3793.bugfix.rst b/changelog/3793.bugfix.rst
index 3cc6878d8b..3a471fa772 100644
--- a/changelog/3793.bugfix.rst
+++ b/changelog/3793.bugfix.rst
@@ -1,1 +1,1 @@
-Fixed ``HTTPResponse.stream()`` to handle ``amt=0``.
+Fixed ``HTTPResponse.stream()`` and ``HTTPResponse.read_chunked()`` to handle ``am... | diff --git a/test/test_response.py b/test/test_response.py
index 009c973190..219e43f2a2 100644
--- a/test/test_response.py
+++ b/test/test_response.py
@@ -1430,6 +1430,16 @@ def test_stream_zero_amt(self) -> None:
data = list(resp.stream(0))
assert data == []
+ def test_read_chunked_zero_amt(self... | true | {
"test/test_response.py::TestResponse::test_read_chunked_zero_amt": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"test/test_response.py::TestResponse::test_invalid_chunk_length": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"test/test_response.py::TestResponse::test_gzipped_streaming": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"test/test_response.py::TestResponse::test_getheaders":... | {
"test/test_response.py::TestResponse::test_read_chunked_zero_amt": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 97,
"failed_count": 0,
"skipped_count": 10,
"passed_tests": [
"test/test_response.py::TestResponse::test_invalid_chunk_length",
"test/test_response.py::TestResponse::test_getheaders",
"test/test_response.py::TestResponse::test_unexpected_body",
"test/test_response.py::TestRespo... | {
"passed_count": 97,
"failed_count": 1,
"skipped_count": 10,
"passed_tests": [
"test/test_response.py::TestResponse::test_invalid_chunk_length",
"test/test_response.py::TestResponse::test_getheaders",
"test/test_response.py::TestResponse::test_unexpected_body",
"test/test_response.py::TestRespo... | {
"passed_count": 98,
"failed_count": 0,
"skipped_count": 10,
"passed_tests": [
"test/test_response.py::TestResponse::test_invalid_chunk_length",
"test/test_response.py::TestResponse::test_getheaders",
"test/test_response.py::TestResponse::test_unexpected_body",
"test/test_response.py::TestRespo... | urllib3__urllib3-4974 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.