Created
August 13, 2014 14:29
-
-
Save rustyrazorblade/ecd6eb9a7a7d4dfb5783 to your computer and use it in GitHub Desktop.
python wtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
FAIL: Tests that columns of an instance can be read as a dict. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/travis/build/cqlengine/cqlengine/cqlengine/tests/model/test_model_io.py", line 65, in test_model_read_as_dict | |
self.assertEquals(sorted(tm.values()), sorted(column_dict.values())) | |
AssertionError: Lists differ: [8L, UUID('90c38c5e-bec9-4d46-... != [True, 8L, UUID('90c38c5e-bec9... | |
First differing element 0: | |
8 | |
True | |
- [8L, UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8'), True, '123456789'] | |
? ------ | |
+ [True, 8L, UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8'), '123456789'] | |
? ++++++ | |
# BUT, I test the same values in the interpreter | |
ipdb> sorted([True, 8L, UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8'), '123456789']) | |
[True, 8L, '123456789', UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8')] | |
ipdb> sorted([8L, UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8'), True, '123456789']) | |
[True, 8L, '123456789', UUID('90c38c5e-bec9-4d46-8d72-7b6a3f62dfa8')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment