~cjwatson/meliae/py3-fix-scanner-tests

  • Committer: Colin Watson
  • Date: 2020-03-11 20:44:34 UTC
  • Revision ID: cjwatson@canonical.com-20200311204434-wlfzyjtlie2x7u41
Fix TestGetRecursiveSize.test_referenced for Python 3.

Python >= 3.3 uses a more compact representation of dicts whose keys are
Unicode strings; this tripped up this test.  Also, Python >= 3.7 does more
aggressive constant folding, defeating the attempt in this test to produce
two equal but non-object-identical strings.

Using unique objects as dict keys is sufficient for the purposes of this
test, and avoids both problems.
Filename Latest Rev Last Changed Committer Comment Size
..
meliae 65 14 years ago John Arbash Meinel Change the branding from 'memory_dump' to 'meliae' Diff
.bzrignore 199.1.1 4 years ago Colin Watson Add tox testing support. This involved some other 101 bytes Diff Download File
CHANGES.txt 196 12 years ago John Arbash Meinel CHANGES update 6.3 KB Diff Download File
COPYING.txt 63 14 years ago John Arbash Meinel Switch from GPL v2 or later, to LGPL 3 or later 34.3 KB Diff Download File
Makefile 199.1.2 4 years ago Colin Watson Rewrite "make check" to use tox. 105 bytes Diff Download File
MANIFEST.in 186.1.1 13 years ago Chris Adams Added MANIFEST.in to include C headers Otherwise 58 bytes Diff Download File
pyproject.toml 199.1.1 4 years ago Colin Watson Add tox testing support. This involved some other 115 bytes Diff Download File
README.txt 130 14 years ago John Arbash Meinel Rename README => README.txt, add CHANGES.txt 186 bytes Diff Download File
File remove_expensive_references.py 86 14 years ago John Arbash Meinel Change license to GPL v3. Official policy is to u 1.6 KB Diff Download File
run_tests.py 86 14 years ago John Arbash Meinel Change license to GPL v3. Official policy is to u 1 KB Diff Download File
setup.cfg 199.1.1 4 years ago Colin Watson Add tox testing support. This involved some other 34 bytes Diff Download File
setup.py 208.3.1 4 years ago Colin Watson Handle int/long changes in Python 3. Python 3 has 3.1 KB Diff Download File
File strip_duplicates.py 86 14 years ago John Arbash Meinel Change license to GPL v3. Official policy is to u 3 KB Diff Download File
TODO.txt 145 13 years ago John Arbash Meinel Update TODO a bit, since I've actually done some o 1.1 KB Diff Download File
tox.ini 199.1.1 4 years ago Colin Watson Add tox testing support. This involved some other 153 bytes Diff Download File
track_memory.py 196.1.2 12 years ago John Arbash Meinel Handle the case when the while loop never runs. 2.4 KB Diff Download File