- Active test suite, using skip-test-missing-warnings.patch to explicitly skip 2 tests regarding warnings, skip-flaky-i586.patch to skip a flaky i586 test, and setting TRAVIS to skip tests which upstream doesnt run in their CI - Add upstream pr_1364.patch to fix reading /sys/blocks on Linux 4.18+ - Remove tests from installed package - Use URL https://github.com/giampaolo/psutil - Use LANG=en_US.UTF-8 in %check to avoid failure in test_pmap - update to version 5.6.1 * No changes effecting Linux * Many checks added to tests to skip tests for missing features OBS-URL: https://build.opensuse.org/request/show/686918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=105
22 lines
995 B
Diff
22 lines
995 B
Diff
diff -ru psutil-5.6.1-orig/psutil/tests/test_linux.py psutil-5.6.1/psutil/tests/test_linux.py
|
|
--- psutil-5.6.1-orig/psutil/tests/test_linux.py 2019-03-18 09:42:48.474895363 +0700
|
|
+++ psutil-5.6.1/psutil/tests/test_linux.py 2019-03-18 10:56:59.227642825 +0700
|
|
@@ -362,7 +362,7 @@
|
|
self.assertIn(
|
|
"inactive memory stats couldn't be determined", str(w.message))
|
|
|
|
- def test_avail_old_missing_fields(self):
|
|
+ def _test_avail_old_missing_fields(self):
|
|
# Remove Active(file), Inactive(file) and SReclaimable
|
|
# from /proc/meminfo and make sure the fallback is used
|
|
# (free + cached),
|
|
@@ -387,7 +387,7 @@
|
|
self.assertIn(
|
|
"inactive memory stats couldn't be determined", str(w.message))
|
|
|
|
- def test_avail_old_missing_zoneinfo(self):
|
|
+ def _test_avail_old_missing_zoneinfo(self):
|
|
# Remove /proc/zoneinfo file. Make sure fallback is used
|
|
# (free + cached).
|
|
with mock_open_content(
|