instance_id string | hints_text string | patch string | test_patch string | created_at string | problem_statement string | repo string | base_commit string | version string | PASS_TO_PASS list | FAIL_TO_PASS list | eval_script string | __index_level_0__ int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
getmoto__moto-5752 | Here's the culprit:
https://github.com/spulec/moto/blob/8f074b0799e4e5303f219549e177d52b016c2dfb/moto/ssm/models.py#L1612
That line returns True from the middle of the for loop. But that function is supposed to only return False from the for loop, and True at the end.
A solution would be something like:
```... | diff --git a/moto/ssm/models.py b/moto/ssm/models.py
--- a/moto/ssm/models.py
+++ b/moto/ssm/models.py
@@ -1606,22 +1606,26 @@ def _match_filters(self, parameter, filters=None):
else:
continue
elif key.startswith("tag:"):
- what = key[4:] or None
- ... | diff --git a/tests/test_ssm/test_ssm_boto3.py b/tests/test_ssm/test_ssm_boto3.py
--- a/tests/test_ssm/test_ssm_boto3.py
+++ b/tests/test_ssm/test_ssm_boto3.py
@@ -67,21 +67,14 @@ def test_delete_parameters():
def test_get_parameters_by_path():
client = boto3.client("ssm", region_name="us-east-1")
- client.pu... | 2022-12-10 20:23:01 | describe_parameters depends on filter order, but shouldn't
# Summary
When calling `ssm` `describe_parameters`, you can pass in a list of filters.
I have seen different behavior based on the order of my filters.
With certain orders, the values returned do not match the filters.
# MWE
Let's create two paramete... | getmoto/moto | b2300f1eae1323e3e8bc45f97e530ce129dff12e | 4.0 | [
"tests/test_ssm/test_ssm_boto3.py::test_get_parameters_should_only_return_unique_requests",
"tests/test_ssm/test_ssm_boto3.py::test_describe_parameters_attributes",
"tests/test_ssm/test_ssm_boto3.py::test_describe_parameters_invalid_parameter_filters[filters6-The",
"tests/test_ssm/test_ssm_boto3.py::test_desc... | [
"tests/test_ssm/test_ssm_boto3.py::test_describe_parameters__multiple_tags"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff b2300f1eae1323e3e8... | 11 |
getmoto__moto-7646 | diff --git a/moto/dynamodb/parsing/executors.py b/moto/dynamodb/parsing/executors.py
--- a/moto/dynamodb/parsing/executors.py
+++ b/moto/dynamodb/parsing/executors.py
@@ -155,7 +155,11 @@ def execute(self, item: Item) -> None:
DDBTypeConversion.get_human_type(string_set_to_remove.type),
)
... | diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py
--- a/tests/test_dynamodb/test_dynamodb_update_expressions.py
+++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py
@@ -89,3 +89,54 @@ def test_update_item_add_float(table_name=None):
... | 2024-04-30 18:49:24 | DynamoDB: Using DELETE fails if attribute does not exist
I believe there is a mismatch in behavior between moto and the real DynamoDB:
- On the real DynamoDB, when using the DELETE operator in `update_item` to remove an item from an attribute that does not exist, it will just be ignored.
- In moto, a cryptic error... | getmoto/moto | 98ad497eb4de25943ceadabe7c2c5c73cc810e27 | 5.0 | [
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float",
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request"
] | [
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_delete_non_existing_item"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 98ad497eb4de25943c... | 63 | |
getmoto__moto-7168 | Hi @abrahamko, thanks for raising this. Marking it as an enhancement to add validation for this use case. | diff --git a/moto/scheduler/exceptions.py b/moto/scheduler/exceptions.py
--- a/moto/scheduler/exceptions.py
+++ b/moto/scheduler/exceptions.py
@@ -8,8 +8,10 @@ def __init__(self, name: str) -> None:
class ScheduleNotFound(JsonRESTError):
- def __init__(self) -> None:
- super().__init__("ResourceNotFoundE... | diff --git a/tests/test_scheduler/test_scheduler.py b/tests/test_scheduler/test_scheduler.py
--- a/tests/test_scheduler/test_scheduler.py
+++ b/tests/test_scheduler/test_scheduler.py
@@ -175,6 +175,17 @@ def test_get_schedule_for_unknown_group():
assert err["Code"] == "ResourceNotFoundException"
+@mock_schedul... | 2023-12-29 06:22:47 | Scheduler should raise ResourceNotFoundException for delete_schedule if not exists
Calling delete_schedule for unknown schedule name raises KeyError instead of ResourceNotFoundException.
```
File "/Source/SH-service/.venv/lib/python3.8/site-packages/moto/scheduler/responses.py", line 60, in delete_schedule
sel... | getmoto/moto | e5f962193cb12e696bd6ec641844c4d09b5fb87c | 4.2 | [
"tests/test_scheduler/test_scheduler.py::test_list_schedules",
"tests/test_scheduler/test_scheduler.py::test_create_get_schedule",
"tests/test_scheduler/test_scheduler.py::test_create_duplicate_schedule",
"tests/test_scheduler/test_scheduler.py::test_create_get_delete__in_different_group",
"tests/test_sched... | [
"tests/test_scheduler/test_scheduler.py::test_get_schedule_for_none_existing_schedule",
"tests/test_scheduler/test_scheduler.py::test_delete_schedule_for_none_existing_schedule"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff e5f962193cb12e696b... | 90 |
getmoto__moto-6308 | diff --git a/moto/s3/responses.py b/moto/s3/responses.py
--- a/moto/s3/responses.py
+++ b/moto/s3/responses.py
@@ -1627,7 +1627,7 @@ def _key_response_put(
checksum_algorithm = request.headers.get("x-amz-checksum-algorithm")
if checksum_algorithm:
checksum_value = compute_chec... | diff --git a/tests/test_s3/test_s3_copyobject.py b/tests/test_s3/test_s3_copyobject.py
--- a/tests/test_s3/test_s3_copyobject.py
+++ b/tests/test_s3/test_s3_copyobject.py
@@ -68,6 +68,18 @@ def test_copy_key_boto3_with_sha256_checksum():
assert "ChecksumSHA256" in resp["Checksum"]
assert resp["Checksum"]["Che... | 2023-05-10 09:29:21 | S3 CopyObject in place with Checksum raises an exception
Since adding the checksum to CopyObject, moto will raise an exception if you try to copy an object in place while requesting its checksum, because it tries to use the source key `.value`, but that key has been overwritten by the new one copied one in place.
He... | getmoto/moto | 52846c9555a3077b11a391fbfcd619d0d6e776f6 | 4.1 | [
"tests/test_s3/test_s3_copyobject.py::test_copy_key_replace_metadata",
"tests/test_s3/test_s3_copyobject.py::test_copy_object_from_unversioned_to_versioned_bucket",
"tests/test_s3/test_s3_copyobject.py::test_copy_object_in_place_with_metadata",
"tests/test_s3/test_s3_copyobject.py::test_copy_key_boto3[the-key... | [
"tests/test_s3/test_s3_copyobject.py::test_copy_key_boto3_with_sha256_checksum"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 52846c9555a3077b11... | 102 | |
getmoto__moto-5562 | Hi @JecaTatu, thanks for raising this! Looks like our delimiter is not quite working as it should, as it matches every key that contains the delimiter.
Looking at the docs it should only match keys that `contain the same string between the prefix and the first occurrence of the delimiter`. Marking this as a bug. :+1:... | diff --git a/moto/s3/models.py b/moto/s3/models.py
--- a/moto/s3/models.py
+++ b/moto/s3/models.py
@@ -1601,10 +1601,12 @@ def list_object_versions(
# Filter for keys that start with prefix
if not name.startswith(prefix):
continue
- # separate out all keys that cont... | diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py
--- a/tests/test_s3/test_s3.py
+++ b/tests/test_s3/test_s3.py
@@ -2463,6 +2463,20 @@ def test_list_object_versions_with_delimiter():
{"key11-without-data", "key12-without-data", "key13-without-data"}
)
+ # Delimiter with Prefix being th... | 2022-10-13 21:53:42 | Problem with list_object_versions
I'm having some trouble using the function `list_object_versions` using the mock of S3. I create a versioned bucket, put an object and its created with the version id, what is expected, but when I try to list the versions, the dict returned by the `list_object_versions` does not come w... | getmoto/moto | 121e3eadb821955c74b5ab61b8cfbef7328e7592 | 4.0 | [
"tests/test_s3/test_s3.py::test_put_bucket_notification",
"tests/test_s3/test_s3.py::test_get_bucket_cors",
"tests/test_s3/test_s3.py::test_get_object",
"tests/test_s3/test_s3.py::test_create_bucket_duplicate",
"tests/test_s3/test_s3.py::test_list_objects_with_pagesize_0",
"tests/test_s3/test_s3.py::test_... | [
"tests/test_s3/test_s3.py::test_list_object_versions_with_delimiter"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 121e3eadb821955c74... | 187 |
python__mypy-10392 | diff --git a/mypy/modulefinder.py b/mypy/modulefinder.py
--- a/mypy/modulefinder.py
+++ b/mypy/modulefinder.py
@@ -627,6 +627,25 @@ def _make_abspath(path: str, root: str) -> str:
return os.path.join(root, os.path.normpath(path))
+def add_py2_mypypath_entries(mypypath: List[str]) -> List[str]:
+ """Add ... | diff --git a/test-data/unit/check-modules.test b/test-data/unit/check-modules.test
--- a/test-data/unit/check-modules.test
+++ b/test-data/unit/check-modules.test
@@ -2843,3 +2843,41 @@ __all__ = ['C']
[file m4.pyi]
class C: pass
[builtins fixtures/list.pyi]
+
+[case testMypyPathAndPython2Dir_python2]
+# flags: --co... | 2021-04-30T15:58:20Z | Look into @python2 subdirectories of mypy search path entries in Python 2 mode
Typeshed uses the `@python2` subdirectory for Python 2 variants of stubs. Mypy could also support this convention for custom search paths. This would make dealing with mixed Python 2/3 codebases a little easier.
If there is a user-defined... | python/mypy | 322ef60ba7231bbd4f735b273e88e67afb57ad17 | 0.820 | [
"mypy/test/testcheck.py::TypeCheckSuite::testMypyPathAndPython2Dir"
] | [
"mypy/test/testcheck.py::TypeCheckSuite::testMypyPathAndPython2Dir_python2"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 322ef60ba7231bbd4f... | 352 | |
python__mypy-15366 | diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py
--- a/mypy/checkexpr.py
+++ b/mypy/checkexpr.py
@@ -2166,15 +2166,7 @@ def check_arg(
if isinstance(caller_type, DeletedType):
self.msg.deleted_as_rvalue(caller_type, context)
# Only non-abstract non-protocol class can be given where Type... | diff --git a/test-data/unit/check-abstract.test b/test-data/unit/check-abstract.test
--- a/test-data/unit/check-abstract.test
+++ b/test-data/unit/check-abstract.test
@@ -196,6 +196,24 @@ x: Type[B]
f(x) # OK
[out]
+[case testAbstractTypeInADict]
+from typing import Dict, Type
+from abc import abstractmethod
+
+cl... | 2023-06-04T07:41:59Z | False-negative `type-abstract` in dictionary initialization
**Bug Report**
`type-abstract` is falsely missing when initializing a dictionary.
**To Reproduce**
```python
"""False-negative `type-abstract`."""
from abc import abstractmethod
class Class:
@abstractmethod
def method(self) -> None:
... | python/mypy | 21c5439dccfc6fc21f126200b95b0552f503d5da | 1.4 | [
"mypy/test/testcheck.py::TypeCheckSuite::check-abstract.test::testInstantiationAbstractsInTypeForAliases"
] | [
"mypy/test/testcheck.py::TypeCheckSuite::check-abstract.test::testAbstractTypeInADict"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 21c5439dccfc6fc21f... | 373 | |
python__mypy-14007 | cc @ilevkivskyi | diff --git a/mypy/typeops.py b/mypy/typeops.py
--- a/mypy/typeops.py
+++ b/mypy/typeops.py
@@ -71,13 +71,13 @@ def is_recursive_pair(s: Type, t: Type) -> bool:
"""
if isinstance(s, TypeAliasType) and s.is_recursive:
return (
- isinstance(get_proper_type(t), Instance)
+ isinstanc... | diff --git a/test-data/unit/check-recursive-types.test b/test-data/unit/check-recursive-types.test
--- a/test-data/unit/check-recursive-types.test
+++ b/test-data/unit/check-recursive-types.test
@@ -808,3 +808,21 @@ def test2() -> Tree2:
def test3() -> Tree3:
return 42 # E: Incompatible return value type (got "i... | 2022-11-04T15:16:13Z | Crash with recursive types
I just notice #731 closed and I thought giving it a go.
```
git clone git@github.com:psycopg/psycopg.git
cd psycopg
git reset --hard 82b84e33
python3 -m venv .venv
source .venv/bin/activate
pip install ./psycopg[test,dev]
# Install mypy at release-0.990
pip install "git+https://g... | python/mypy | 796068d06a0ab171d22f7be555c28dfad57db433 | 1.0 | [] | [
"mypy/test/testcheck.py::TypeCheckSuite::check-recursive-types.test::testRecursiveDoubleUnionNoCrash"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 796068d06a0ab171d2... | 425 |
python__mypy-15413 | Thanks for posting your repro! The thing that's changed between 0.782 and 0.790 is the definition of `sorted`. `key` used to be a function that returned `Any`, but is now marked as a function that returns a `SupportsLessThan`.
This makes it similar to #9590 where itertools.groupby takes a function that returns a typev... | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -4270,6 +4270,7 @@ def check_return_stmt(self, s: ReturnStmt) -> None:
isinstance(return_type, Instance)
and return_type.type.fullname == "builtins.object"
... | diff --git a/test-data/unit/check-flags.test b/test-data/unit/check-flags.test
--- a/test-data/unit/check-flags.test
+++ b/test-data/unit/check-flags.test
@@ -2184,3 +2184,14 @@ def f(x: bytes, y: bytearray, z: memoryview) -> None:
follow_imports = skip
follow_imports_for_stubs = true
[builtins fixtures/dict.pyi]
+
... | 2023-06-11T11:27:21Z | Warn Return Any now applies to small lambdas
**Bug Report**
Suppose we have the follow code:
```python
from typing import Any
x: Any = [1, 2, 3]
sorted([0, 2, 1], key=lambda i: x[i])
```
With `mypy 0.790`, I get an error:
```
$ mypy --warn-return-any scratch.py
scratch.py:4: error: Returning Any from fu... | python/mypy | e7b917ec7532206b996542570f4b68a33c3ff771 | 1.4 | [] | [
"mypy/test/testcheck.py::TypeCheckSuite::check-flags.test::testReturnAnyLambda"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff e7b917ec7532206b99... | 508 |
python__mypy-10572 | Protocols already do (1) for incompatible types (but not for incompatible override in an explicit subclass). I think this is the most important one, (2) and (3) are also good to have, but are probably less important.
I'm looking into this one
If anyone wants to tackle this issue feel free to continue on my work from ht... | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -1685,7 +1685,7 @@ def erase_override(t: Type) -> Type:
if not emitted_msg:
# Fall back to generic incompatibility message.
self.msg.signature_incompatible_with_supertype(
- ... | diff --git a/test-data/unit/check-abstract.test b/test-data/unit/check-abstract.test
--- a/test-data/unit/check-abstract.test
+++ b/test-data/unit/check-abstract.test
@@ -442,9 +442,13 @@ class I(metaclass=ABCMeta):
def g(self, x): pass
class A(I):
def f(self, x): pass
- def g(self, x, y) -> None: pass \
... | 2021-06-01T16:58:47Z | Better message if method incompatible with base class
Currently if a method is incompatible with a base class, mypy just tells the name of the base class but doesn't actually give more details about the expected signature. This is a problem especially if the base class is defined in typeshed, since users may not know h... | python/mypy | e07ad3b3bad14ddde2e06982eab87db104a90add | 0.920 | [
"mypy/test/testcheck.py::TypeCheckSuite::testOverloadErrorMessageManyMatches",
"mypy/test/testcheck.py::TypeCheckSuite::testTypeGuardInAnd",
"mypy/test/testcheck.py::TypeCheckSuite::testTypeTypeOverlapsWithObjectAndType",
"mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::testIfMypyUnreachableClass_ca... | [
"mypy/test/testcheck.py::TypeCheckSuite::testInvalidOverrideArgumentCountWithImplicitSignature3",
"mypy/test/testfinegrained.py::FineGrainedSuite::testFinalBodyReprocessedAndStillFinalOverloaded",
"mypy/test/testfinegrained.py::FineGrainedSuite::testOverloadedMethodSupertype",
"mypy/test/testcheck.py::TypeChe... | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff e07ad3b3bad14ddde2... | 529 |
iterative__dvc-5822 | We used to clone the repo if `rev` was provided before, nowadays we don't do that (and hope `scm` copes with that), but we don't properly initialize them.
The easy fix might be to rollback to that behaviour, or fix this initialization process.
Another user running into this https://discordapp.com/channels/4855868841... | diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py
--- a/dvc/repo/__init__.py
+++ b/dvc/repo/__init__.py
@@ -141,6 +141,7 @@ def __init__(
from dvc.repo.params import Params
from dvc.repo.plots import Plots
from dvc.repo.stage import StageLoad
+ from dvc.scm import SCM
f... | diff --git a/tests/func/test_api.py b/tests/func/test_api.py
--- a/tests/func/test_api.py
+++ b/tests/func/test_api.py
@@ -182,6 +182,15 @@ def test_open_not_cached(dvc):
api.read(metric_file)
+def test_open_rev(tmp_dir, scm, dvc):
+ tmp_dir.scm_gen("foo", "foo", commit="foo")
+
+ (tmp_dir / "foo").w... | 2021-04-15T14:16:49Z | dvc.api.open: fails when using a local repo and any revision
# Bug Report
## Description
After upgrading to `dvc 2.0` my old code that worked fine for `dvc 1.x.x` started raising exceptions. And the reason for that is `dvc.api.open`. If I try to open any file from my local repo (you also need to provide a revisio... | iterative/dvc | 31439754377d829da6babffcc720dd696554d8ab | 2.0 | [
"tests/func/test_api.py::test_open_scm_controlled"
] | [
"tests/func/test_api.py::test_open_rev"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 31439754377d829da6... | 684 |
iterative__dvc-4719 | Reproduction script with `always_changed`:
```
#!/bin/bash
rm -rf repo
mkdir repo
pushd repo
set -ex
git init --quiet
dvc init --quiet
echo -e "foo:\n bar: 2" > params.yaml
dvc run -p params.yaml:foo.bar -n cp -o a.txt --always-changed "echo 'a' > a.txt"
# not reproduced
dvc repro cp
```
So ... | diff --git a/dvc/stage/cache.py b/dvc/stage/cache.py
--- a/dvc/stage/cache.py
+++ b/dvc/stage/cache.py
@@ -3,7 +3,7 @@
import tempfile
from contextlib import contextmanager
-from funcy import first
+from funcy import cached_property, first
from voluptuous import Invalid
from dvc.cache.local import _log_exceptio... | diff --git a/tests/unit/stage/test_cache.py b/tests/unit/stage/test_cache.py
--- a/tests/unit/stage/test_cache.py
+++ b/tests/unit/stage/test_cache.py
@@ -1,5 +1,7 @@
import os
+import pytest
+
def test_stage_cache(tmp_dir, dvc, mocker):
tmp_dir.gen("dep", "dep")
@@ -204,3 +206,19 @@ def _mode(path):
as... | 2020-10-14T11:50:56Z | Callback stage not exectued if params defined in dvc.yaml
## Bug Report
Callback stages (defined by not existing dependencies as well as by `dvc run --always-changed` option) are not executed if parameters were defined in the `dvc.yaml` but restored from the run-cache and skipped.
Minimal example:
```
$ git init
... | iterative/dvc | 6a79111047a838b2e7daee0861570ffe01c38d02 | 1.8 | [] | [
"tests/unit/stage/test_cache.py::test_always_changed"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 6a79111047a838b2e7... | 795 |
iterative__dvc-5185 | diff --git a/dvc/stage/cache.py b/dvc/stage/cache.py
--- a/dvc/stage/cache.py
+++ b/dvc/stage/cache.py
@@ -34,18 +34,26 @@ def _get_cache_hash(cache, key=False):
)
-def _get_stage_hash(stage):
- if not (stage.cmd and stage.deps and stage.outs):
- return None
+def _can_hash(stage):
+ if stage.is_ca... | diff --git a/tests/unit/stage/test_cache.py b/tests/unit/stage/test_cache.py
--- a/tests/unit/stage/test_cache.py
+++ b/tests/unit/stage/test_cache.py
@@ -208,14 +208,22 @@ def _mode(path):
assert _mode(cache_file) == file_mode
-def test_always_changed(mocker):
- from dvc.repo import Repo
- from dvc.stag... | 2020-12-31T02:38:42Z | run-cache: `restore` does not check if stage has outs or not
```bash
#! /bin/bash
set -e
set -x
cd "$(mktemp -d)"
git init && dvc init
echo 'var: foo' > params.yaml
# create a stage without any outputs
dvc run -v -n echo -p var "echo hello world"
# change `cmd` so that it's not cached
# and, `-f` t... | iterative/dvc | ceaba68f629ab97905bcf365667e6f289d0617b4 | 1.11 | [
"tests/unit/stage/test_cache.py::test_unhashable[kwargs1]",
"tests/unit/stage/test_cache.py::test_unhashable[kwargs4]"
] | [
"tests/unit/stage/test_cache.py::test_unhashable[kwargs0]"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff ceaba68f629ab97905... | 823 | |
iterative__dvc-4190 | For the record: the issue is that in external repo we operate on virtual trees(we don't checkout to the branch), but we still read config through regular open() calls, which is causing this issue. Need to make our config use repo's `self.tree` to read/write configs. | diff --git a/dvc/config.py b/dvc/config.py
--- a/dvc/config.py
+++ b/dvc/config.py
@@ -232,8 +232,10 @@ class Config(dict):
CONFIG_LOCAL = "config.local"
def __init__(
- self, dvc_dir=None, validate=True
+ self, dvc_dir=None, validate=True, tree=None,
): # pylint: disable=super-init-not-... | diff --git a/tests/unit/repo/test_repo.py b/tests/unit/repo/test_repo.py
--- a/tests/unit/repo/test_repo.py
+++ b/tests/unit/repo/test_repo.py
@@ -3,7 +3,8 @@
import pytest
from funcy import raiser
-from dvc.repo import locked
+from dvc.repo import NotDvcRepoError, Repo, locked
+from dvc.utils.fs import remove
... | 2020-07-10T21:11:36Z | dvc get --rev doesn't work if master is not a dvc repo
## Bug Report
### Please provide information about your setup
**Output of `dvc version`:**
```console
DVC version: 1.1.7
Python version: 3.7.2
Platform: Darwin-18.7.0-x86_64-i386-64bit
Binary: False
Package: pip
Supported remotes: http, https, s3
Ca... | iterative/dvc | 375998c6642c3003aebcf6b25e69360e7cf6f105 | 1.1 | [
"tests/unit/repo/test_repo.py::test_skip_graph_checks",
"tests/unit/repo/test_repo.py::test_is_dvc_internal",
"tests/unit/repo/test_repo.py::test_locked"
] | [
"tests/unit/repo/test_repo.py::test_branch_config"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 375998c6642c3003ae... | 859 |
iterative__dvc-8177 | Thanks @mattseddon! Could you describe how it impacts VS Code and how important it is?
I see that it's inconsistent with other commands, but both behaviors seem initially reasonable to me, and since I have never seen a user complaint about it, I would only prioritize it based on your needs.
This broke the workflow o... | diff --git a/dvc/commands/experiments/diff.py b/dvc/commands/experiments/diff.py
--- a/dvc/commands/experiments/diff.py
+++ b/dvc/commands/experiments/diff.py
@@ -27,7 +27,7 @@ def run(self):
if self.args.json:
ui.write_json(diff)
- else:
+ elif diff:
from dvc.compare ... | diff --git a/tests/func/experiments/test_diff.py b/tests/func/experiments/test_diff.py
--- a/tests/func/experiments/test_diff.py
+++ b/tests/func/experiments/test_diff.py
@@ -1,6 +1,17 @@
from funcy import first
+def test_diff_no_commits(tmp_dir):
+ from scmrepo.git import Git
+
+ from dvc.repo import Repo
+... | 2022-08-25T08:17:52Z | `plots diff` & `exp show`: unexpected error - Empty git repo
# Bug Report
<!--
## Issue name
Issue names must follow the pattern `command: description` where the command is the dvc command that you are trying to run. The description should describe the consequence of the bug.
Example: `repro: doesn't detect ... | iterative/dvc | e815bbe211ac931e816435a0a90127141223d2a2 | 2.20 | [
"tests/func/experiments/test_diff.py::test_diff_no_commits"
] | [
"tests/func/experiments/test_show.py::test_show_no_commits",
"tests/func/plots/test_diff.py::test_no_commits"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff e815bbe211ac931e81... | 882 |
pydantic__pydantic-9053 | diff --git a/pydantic/fields.py b/pydantic/fields.py
--- a/pydantic/fields.py
+++ b/pydantic/fields.py
@@ -64,7 +64,7 @@ class _FromFieldInfoInputs(typing_extensions.TypedDict, total=False):
strict: bool | None
min_length: int | None
max_length: int | None
- pattern: str | None
+ pattern: str | typ... | diff --git a/tests/test_types.py b/tests/test_types.py
--- a/tests/test_types.py
+++ b/tests/test_types.py
@@ -3936,6 +3936,59 @@ class Foobar(BaseModel):
}
+@pytest.mark.parametrize(
+ 'use_field',
+ [pytest.param(True, id='Field'), pytest.param(False, id='constr')],
+)
+def test_compiled_pattern_in_fie... | 2024-03-19T15:51:37Z | Add support `re.Pattern[str]` to `pattern` field in `Field`
### Initial Checks
- [X] I have searched Google & GitHub for similar requests and couldn't find anything
- [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think this feature is missing
### Description
I think it just a simple id... | pydantic/pydantic | ac9e6ee3e40845014fc2f9c79d95c5896dc3eca7 | 2.7 | [
"tests/test_types.py::test_finite_float_validation_error[inf]",
"tests/test_types.py::test_default_validators[date_check-value113-result113]",
"tests/test_types.py::test_decimal_validation[condecimal-type_args46-value46-result46]",
"tests/test_types.py::test_types_repr[PastDate-PastDate]",
"tests/test_types... | [
"tests/test_types.py::test_compiled_pattern_in_field[Field]",
"tests/test_types.py::test_compiled_pattern_in_field[constr]"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff ac9e6ee3e40845014f... | 1,045 | |
pydantic__pydantic-5390 | Great catch! We'll let you know once this has been addressed. | diff --git a/pydantic/_internal/_decorators.py b/pydantic/_internal/_decorators.py
--- a/pydantic/_internal/_decorators.py
+++ b/pydantic/_internal/_decorators.py
@@ -237,9 +237,11 @@ def __get__(self, obj: object, objtype: type[object]) -> Callable[..., ReturnTyp
def __get__(
self, obj: object | None, ob... | diff --git a/tests/test_json.py b/tests/test_json.py
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -233,22 +233,6 @@ def serialize_timedt(self, _v: timedelta, _info):
assert Child().model_dump_json() == '{"dt":"parent_encoder","timedt":"child_encoder"}'
-def test_json_encoder_inheritance_override():
- ... | 2023-04-05T22:06:47Z | `root_validator` methods are not called with subclasses as the first argument (always have the cls on which they were defined)
### Initial Checks
- [X] I confirm that I'm using Pydantic V2 installed directly from the `main` branch, or equivalent
### Description
I believe functions decorated `root_validator` ar... | pydantic/pydantic | 28e83965098c52536af2beb54dcd4da777a4fcd2 | 2.01 | [
"tests/test_validators.py::test_v1_validator_signature_kwargs1",
"tests/test_json.py::test_json_serialization[ser_type21-<lambda>-[0,1,2,3]]",
"tests/test_json.py::test_json_serialization[Color-<lambda>-\"black\"]",
"tests/test_validators.py::test_field_that_is_being_validated_is_excluded_from_validator_value... | [
"tests/test_validators.py::test_root_validator_subclass",
"tests/test_serialize.py::test_serializer_allow_reuse_inheritance_override",
"tests/test_validators.py::test_invalid_field"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 28e83965098c52536a... | 1,063 |
pydantic__pydantic-5021 | diff --git a/pydantic/_internal/_model_construction.py b/pydantic/_internal/_model_construction.py
--- a/pydantic/_internal/_model_construction.py
+++ b/pydantic/_internal/_model_construction.py
@@ -144,10 +144,18 @@ def complete_model_class(
except PydanticUndefinedAnnotation as e:
if raise_errors:
... | diff --git a/tests/test_forward_ref.py b/tests/test_forward_ref.py
--- a/tests/test_forward_ref.py
+++ b/tests/test_forward_ref.py
@@ -64,7 +64,7 @@ class Bar(BaseModel):
'FieldInfo(annotation=SelfType, required=False, metadata=[SchemaRef(__pydantic_core_schema__'
)
# but Foo is not ready to use
- ... | 2023-02-06T23:55:28Z | Show clearer error message in the event of undefined annotations (v2)
Currently, if you include a forward reference _without_ setting the config field `undefined_types_warning = True`, it is difficult to understand what is happening:
```python
from typing import Optional
from pydantic import BaseModel
class M... | pydantic/pydantic | ef3cc495a9c86553b62a95a6052fd9b6ebc045e9 | 2.0 | [
"tests/test_forward_ref.py::test_self_forward_ref_module",
"tests/test_forward_ref.py::test_self_forward_ref_local",
"tests/test_forward_ref.py::test_undefined_types_warning_1b_suppressed_via_config_2b_forward_ref",
"tests/test_forward_ref.py::test_postponed_annotations_auto_model_rebuild",
"tests/test_forw... | [
"tests/test_forward_ref.py::test_undefined_types_warning_raised_by_usage",
"tests/test_forward_ref.py::test_undefined_types_warning_1a_raised_by_default_2a_future_annotations",
"tests/test_forward_ref.py::test_undefined_types_warning_1a_raised_by_default_2b_forward_ref",
"tests/test_forward_ref.py::test_forwa... | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff ef3cc495a9c86553b6... | 1,067 | |
pydantic__pydantic-5897 | diff --git a/pydantic/_internal/_model_construction.py b/pydantic/_internal/_model_construction.py
--- a/pydantic/_internal/_model_construction.py
+++ b/pydantic/_internal/_model_construction.py
@@ -551,5 +551,7 @@ def model_private_delattr(self: BaseModel, item: str) -> Any:
del self.__pydantic_private__[... | diff --git a/tests/test_create_model.py b/tests/test_create_model.py
--- a/tests/test_create_model.py
+++ b/tests/test_create_model.py
@@ -1,3 +1,4 @@
+import platform
from typing import Optional, Tuple
import pytest
@@ -360,6 +361,72 @@ class Model(BaseModel):
assert Model()._private_attr == 2
+def test_d... | 2023-05-27T13:32:40Z | Error on deleting an attribute of a Model having a PrivateAttr defined
### Initial Checks
- [X] I confirm that I'm using Pydantic V2 installed directly from the `main` branch, or equivalent
### Description
If a Model has a `PrivateAttr` defined deleting a regular field of its instance results in an `AttributeError`.... | pydantic/pydantic | 742c39150f3bcd695420ce5a631e36cc365164f1 | 2.04 | [
"tests/test_create_model.py::test_private_attr_set_name_do_not_crash_if_not_callable",
"tests/test_create_model.py::test_create_model_protected_namespace_default",
"tests/test_create_model.py::test_del_model_attr_error",
"tests/test_create_model.py::test_config_and_base",
"tests/test_create_model.py::test_c... | [
"tests/test_create_model.py::test_del_model_attr_with_privat_attrs"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 742c39150f3bcd6954... | 1,075 | |
pydantic__pydantic-8567 | @Anvil,
Thanks for reporting this. This does look like a bug 🐛. We'll work on a fix for this unexpected behavior 👍.
Thank you for your reply.
I've conducted a little experiment, that you might consider interesting:
```python
import json
from itertools import combinations, chain, permutations
from typing ... | diff --git a/pydantic/functional_validators.py b/pydantic/functional_validators.py
--- a/pydantic/functional_validators.py
+++ b/pydantic/functional_validators.py
@@ -153,13 +153,17 @@ class Model(BaseModel):
func: core_schema.NoInfoValidatorFunction | core_schema.WithInfoValidatorFunction
def __get_pydanti... | diff --git a/tests/test_validators.py b/tests/test_validators.py
--- a/tests/test_validators.py
+++ b/tests/test_validators.py
@@ -20,6 +20,7 @@
ConfigDict,
Field,
GetCoreSchemaHandler,
+ PlainSerializer,
PydanticDeprecatedSince20,
PydanticUserError,
TypeAdapter,
@@ -2810,3 +2811,19 @@ ... | 2024-01-16T20:23:59Z | Annotated type PlainSerializer not used if placed before PlainValidator
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
Dear pydantic maintainers and community.
Thank you very much for your time, your code and the documentation that comes along. All of them are very useful to me.
... | pydantic/pydantic | 8060fa1cff965850e5e08a67ca73d5272dcdcf9f | 2.6 | [
"tests/test_validators.py::test_v1_validator_signature_kwargs1",
"tests/test_validators.py::test_field_that_is_being_validated_is_excluded_from_validator_values",
"tests/test_validators.py::test_validator_self",
"tests/test_validators.py::test_validator_bad_fields_throws_configerror",
"tests/test_validators... | [
"tests/test_validators.py::test_plain_validator_plain_serializer"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 8060fa1cff965850e5... | 1,076 |
pandas-dev__pandas-51854 | Thanks for the report. Could you post the full traceback?
> Thanks for the report. Could you post the full traceback?
Sure...
<details>
```python
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
Cell In[4]... | diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py
index a262a45feb9c5..2ba0711de98f9 100644
--- a/pandas/core/arrays/arrow/dtype.py
+++ b/pandas/core/arrays/arrow/dtype.py
@@ -27,6 +27,7 @@
StorageExtensionDtype,
register_extension_dtype,
)
+from pandas.core.dtypes.dtypes imp... | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 712fccae83cfe..22920e077123e 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -39,6 +39,7 @@
from pandas.errors import PerformanceWarning
from pandas.core.dtypes.common impor... | 2023-03-09T00:43:39Z | BUG: Pandas 2.0rc0 can't handle string column with PyArrow (large_string error)
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [ ] I hav... | pandas-dev/pandas | acf3395aaafbc15ce461f6667f0b1d63bf3766d1 | 2.1 | [
"pandas/tests/extension/test_arrow.py::TestBaseSetitem::test_setitem_scalar[timestamp[s,",
"pandas/tests/extension/test_arrow.py::TestConstructors::test_from_dtype[timestamp[us,",
"pandas/tests/extension/test_arrow.py::TestBaseMethods::test_shift_0_periods[binary]",
"pandas/tests/extension/test_arrow.py::Test... | [
"pandas/tests/extension/test_arrow.py::test_arrow_dtype_type[arrow_dtype3-str]",
"pandas/tests/extension/test_arrow.py::test_arrow_dtype_type[arrow_dtype7-CategoricalDtypeType]",
"pandas/tests/extension/test_arrow.py::test_arrow_dtype_type[arrow_dtype5-list]",
"pandas/tests/extension/test_arrow.py::test_arrow... | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff acf3395aaafbc15ce4... | 1,161 |
pandas-dev__pandas-54428 | Looks like in pd.core.internals.concat we need to change `i8values = np.full(self.shape, fill_value._value)` to `i8values = np.full(self.shape, NaT.value)`
ran into this bug this AM in pandas 2.0.1
PR to address this is welcome.
take | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9eb5bbc8f07d5..e3d17977ad26c 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -301,6 +301,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :func:`concat` raising ``AttributeError`` when concaten... | diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py
index 74c79d20a3fb3..131058010808e 100644
--- a/pandas/tests/reshape/concat/test_concat.py
+++ b/pandas/tests/reshape/concat/test_concat.py
@@ -867,3 +867,14 @@ def test_concat_ea_upcast():
result = concat([df1, df... | 2023-08-05T15:27:21Z | BUG: AttributeError raised with pd.concat between a None and Timestamp
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [X] I have confirmed thi... | pandas-dev/pandas | f32c52d07c71c38c02edc3b9a3ef9d6915c13aa5 | 2.2 | [
"pandas/tests/reshape/concat/test_concat.py::test_concat_retain_attrs[data0]",
"pandas/tests/reshape/concat/test_concat.py::test_concat_will_upcast[int-Series]",
"pandas/tests/reshape/concat/test_concat.py::test_concat_preserves_subclass[obj1]",
"pandas/tests/reshape/concat/test_concat.py::test_concat_will_up... | [
"pandas/tests/reshape/concat/test_concat.py::test_concat_none_with_timezone_timestamp"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff f32c52d07c71c38c02... | 1,327 |
pandas-dev__pandas-50986 | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 78422ec686da8..c959a9777b0b0 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1229,6 +1229,7 @@ Numeric
- Bug in DataFrame reduction methods (e.g. :meth:`DataFrame.sum`) with object dtype, ``axis=1`` ... | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 1b1cbc8130e4d..492de537171c3 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -1339,38 +1339,31 @@ def test_quantile(data, interpolation, quantile, request):
tm.assert_s... | 2023-01-26T02:26:17Z | BUG: .mode with pyarrow dtypes ignores dropna
```python
ser = pd.Series([1, 1, None, None], dtype="int64[pyarrow]")
ser.mode(dropna=True)
ser.mode(dropna=False)
```
With either dropna=True or dropna=False, we get back `Series([1], dtype="int64[pyarrow]")`. I'd expect that with dropna=True, but expeced to get ... | pandas-dev/pandas | 4965c51ef63dd06bcf460165a10bffa688142c46 | 2.0 | [
"pandas/tests/extension/test_arrow.py::TestBaseSetitem::test_setitem_scalar[timestamp[s,",
"pandas/tests/extension/test_arrow.py::TestBaseMethods::test_shift_0_periods[binary]",
"pandas/tests/extension/test_arrow.py::TestBaseInterface::test_memory_usage[binary]",
"pandas/tests/extension/test_arrow.py::TestBas... | [
"pandas/tests/extension/test_arrow.py::test_mode_dropna_false_mode_na[int32]",
"pandas/tests/extension/test_arrow.py::test_mode_dropna_true[timestamp[us]-multi_mode]",
"pandas/tests/extension/test_arrow.py::test_mode_dropna_true[binary-single_mode]",
"pandas/tests/extension/test_arrow.py::test_mode_dropna_fal... | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 4965c51ef63dd06bcf... | 1,392 | |
pandas-dev__pandas-55270 | [pivot_longer](https://pyjanitor-devs.github.io/pyjanitor/api/functions/#janitor.functions.pivot.pivot_longer) preserves the dtypes:
```py
# pip install pyjanitor
import pandas as pd
import janitor
df.pivot_longer(index='type', names_to='start/end', values_to='date')
type start/end ... | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index fa3cef6d9457d..d498c84358448 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -254,6 +254,7 @@ Bug fixes
- Bug in :class:`AbstractHolidayCalendar` where timezone data was not propagated when computing ... | diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py
index 941478066a7d8..ef748e264188c 100644
--- a/pandas/tests/reshape/test_melt.py
+++ b/pandas/tests/reshape/test_melt.py
@@ -459,6 +459,47 @@ def test_melt_ea_columns(self):
)
tm.assert_frame_equal(result, expected)
... | 2023-09-25T00:44:14Z | BUG: melt method doesn't seem to preserve timezone settings.
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [X] I have confirmed this bug exis... | pandas-dev/pandas | 59616c57d6abcf0fb4eb5f81928120c7b000ba88 | 2.2 | [
"pandas/tests/reshape/test_melt.py::TestMelt::test_pandas_dtypes[col0]",
"pandas/tests/reshape/test_melt.py::TestWideToLong::test_mixed_type_suffix",
"pandas/tests/reshape/test_melt.py::TestMelt::test_tuple_vars_fail_with_multiindex[id_vars0-value_vars0]",
"pandas/tests/reshape/test_melt.py::TestWideToLong::t... | [
"pandas/tests/reshape/test_melt.py::TestMelt::test_melt_preserves_datetime"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff 59616c57d6abcf0fb4... | 1,677 |
pandas-dev__pandas-50232 | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 4d3b2548f5fc5..caff9d7f5cb1a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -775,6 +775,7 @@ Datetimelike
- Bug in ``pandas.tseries.holiday.Holiday`` where a half-open date interval causes inconsiste... | diff --git a/pandas/tests/scalar/timestamp/test_timestamp.py b/pandas/tests/scalar/timestamp/test_timestamp.py
index 0384417771056..5446e16c189b0 100644
--- a/pandas/tests/scalar/timestamp/test_timestamp.py
+++ b/pandas/tests/scalar/timestamp/test_timestamp.py
@@ -1082,3 +1082,11 @@ def test_as_unit_non_nano(self):
... | 2022-12-13T13:48:19Z | WARN: warning shown when parsing delimited date string even if users can't do anything about it
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
-... | pandas-dev/pandas | d05040824e6ab4e1611590a38172880a45dbd92f | 2.0 | [
"pandas/tests/scalar/timestamp/test_timestamp.py::TestNonNano::test_sub_timedelta64_mismatched_reso['UTC-02:15'-s]",
"pandas/tests/scalar/timestamp/test_timestamp.py::TestNonNano::test_addsub_timedeltalike_non_nano[s-td0]",
"pandas/tests/scalar/timestamp/test_timestamp.py::TestTimestampProperties::test_names[es... | [
"pandas/tests/scalar/timestamp/test_timestamp.py::test_delimited_date"
] | #!/bin/bash
set -exo pipefail
# Activate conda environment
source /opt/miniconda3/bin/activate
conda activate testbed
# Navigate to testbed
cd /testbed
# Set git safe directory
git config --global --add safe.directory /testbed
# Repository state inspection
cd /testbed
git status
git show
git diff d05040824e6ab4e161... | 1,797 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.