Comments (1)
The problem is that the dictionary keys are sorted before comparing them:
Line 109 in 8928dd0
This is a problem if the key type is not sortable.
It's necessary because if the two dicts are not equal using X == Y
, then a deep comparison is performed which need the keys to be sorted:
Line 132 in 8928dd0
However, I think we can work around that, because from line 114 to 126 is already verified that the two dicts have the same keys, so the loop on 132 could just iterate the keys from the lhs dict in the given order and compare against the one on the rhs.
I hope I can provide a fix later today.
from sure.
Related Issues (20)
- Six usage in setup.py prevents install in virtualenv HOT 6
- ReadTheDocs website root url redirects to the wrong destination HOT 5
- BUG sure appears to break @patch.mock in python 3.6 HOT 1
- DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working HOT 1
- 'module' object has no attribute '_CallList' HOT 1
- pylint Instance of 'str' has no 'should' member (no-member) false positive. HOT 2
- Deprecation warning due to invalid escape sequences. HOT 1
- Python 3.10.0a1: FAIL: sure.that_with_context() when no context is given it fails HOT 1
- Language Server Protocol (LSP) support.
- 1.4.11 + master: pytest warnings HOT 2
- python3.10 test failures HOT 1
- Proposing a PR to fix a few small typos HOT 1
- 2.0.0: sphinx warnings HOT 1
- 2.0.0: breaks when using Moto decorator on TestCase class HOT 1
- Dependency Dashboard
- 2.0.0: pytest iuses `nose` module which is deprecated
- python 2.7 breakage HOT 1
- Introduction of pyproject.toml
- RFE: find `couleur` replacement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sure.