Comments (1)
Played a little with this:
$ python3.5 -m nose
.................F.....................................
======================================================================
FAIL: test_enhance_file_elements (tests.test_collector.TestCollector)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tyler/dev/junk/puncover/tests/test_collector.py", line 415, in test_enhance_file_elements
self.assertListEqual([aa, ab, b], crf)
AssertionError: Lists differ: [{'co[18 chars]s': [], 'name': 'a', 'collapsed_name': 'a/a', [6996 chars]'b'}] != [{'co[18 chars]s': [{'collapsed_sub_folders': [], 'name': 'a'[6996 chars]/b'}]
First differing element 0:
{'col[17 chars]s': [], 'name': 'a', 'collapsed_name': 'a/a', [2565 chars]a/a'}
{'col[17 chars]s': [{'collapsed_sub_folders': [], 'name': 'a'[1715 chars] 'b'}
Diff is 28182 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 55 tests in 0.196s
This only happens for my with a 3.5.10 installation of Python, not a 3.5.5.
The two lists contain the same elements, just not in the same order. I assume in future versions, Python did something around sorting that enable these tests to pass.
One thing to consider would be to change assertListEqual
to assertCountEqual
if the order doesn't matter.
https://docs.python.org/3.2/library/unittest.html#unittest.TestCase.assertCountEqual
But, at the end of the day, most people are deprecating support for 3.5.
from puncover.
Related Issues (20)
- Show assembly and source side-by-side
- Support xc16 (pic) disassembler output
- Overview page / sort by stack usage HOT 3
- Error 'no module named collector' HOT 1
- be explicit about python3 requirement HOT 1
- use travis build matrix HOT 1
- enforce coding PEP 8 style HOT 1
- publish to pypi HOT 5
- Windows compatibility (.exe ARM tools) HOT 9
- Crash during call tree enhancement "Exception has occured: KeyError 'callers'" HOT 2
- use map files instead of output from nm as a source of symbols and sizes
- Rust Support HOT 3
- Default port 5000 conflicts with widely used mDNSResponder HOT 2
- Downloading the entire site for viewing later or sending HOT 3
- HTML or PDF report HOT 4
- Cannot run python because version conflict HOT 2
- Review pinned dependency versions in `requirements.txt`
- First time use not working HOT 2
- Stack usage not displayed correctly due to basefile not being parsed in files with extension .su
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 puncover.