14
0
forked from pool/python-smmap
Files
python-smmap/delete_platform_specific_test.patch
Jan Matejek 24dd38c9aa Accepting request 305492 from home:benoit_monin:branches:devel:languages:python
- update to version 0.9.0
- update project URL
- add fdupes as BuildRequires and call it after install
- add dependencies (nose, nosexcover) for the tests
- add delete_platform_specific_test.patch: fix tests on powerpc
- pass -q to the test to avoid spamming the build log

OBS-URL: https://build.opensuse.org/request/show/305492
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smmap?expand=0&rev=7
2015-05-07 11:56:29 +00:00

22 lines
1009 B
Diff

Remove a test that fails on powerpc and probably any non x86 platform.
Index: b/smmap/test/test_util.py
===================================================================
--- a/smmap/test/test_util.py
+++ b/smmap/test/test_util.py
@@ -76,14 +76,6 @@ class TestMMan(TestBase):
assert rfull.includes_ofs(0) and rfull.includes_ofs(fc.size - 1) and rfull.includes_ofs(half_size)
assert not rfull.includes_ofs(-1) and not rfull.includes_ofs(sys.maxsize)
- # with the values we have, this test only works on windows where an alignment
- # size of 4096 is assumed.
- # We only test on linux as it is inconsitent between the python versions
- # as they use different mapping techniques to circumvent the missing offset
- # argument of mmap.
- if sys.platform != 'win32':
- assert rhalfofs.includes_ofs(rofs) and not rhalfofs.includes_ofs(0)
- # END handle platforms
# auto-refcount
assert rfull.client_count() == 1