Skip to content

Commit

Permalink
Remove test code that does not exercise anything in pybind11, but bre…
Browse files Browse the repository at this point in the history
…aks between Python 3.12alpha3 (still working) and 3.12alpha6 (broken):

```
str(OrderedDict([(1, "a"), (2, "b")]))
```

Old:
```
OrderedDict([(1, 'a'), (2, 'b')])
```

New:
```
OrderedDict({1: 'a', 2: 'b'})
```

See also: python/cpython#101446
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Mar 9, 2023
1 parent cbb876c commit eb1ca31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def test_importing():
from pybind11_tests.modules import OD

assert OD is OrderedDict
assert str(OD([(1, "a"), (2, "b")])) == "OrderedDict([(1, 'a'), (2, 'b')])"


def test_pydoc():
Expand Down

0 comments on commit eb1ca31

Please sign in to comment.