summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* get rid of PSUTIL_TESTING env var: it must be necessarily set from cmdline, ↵psutil-test-flagGiampaolo Rodola2017-11-119-23/+38
| | | | hence 'python -m psutil.tests' won't work out of the box
* try to set PSUTIL_TESTING env var from python before failingGiampaolo Rodola2017-11-112-19/+22
|
* skip cpu_freq tests if not available (#1170)wiggin152017-11-112-1/+10
| | | cpu_freq is not always available on Linux
* update docGiampaolo Rodola2017-11-083-8/+13
|
* pre-releaserelease-5.4.1Giampaolo Rodola2017-11-082-1/+5
|
* #1053: drop python 3.3 supportGiampaolo Rodola2017-11-086-13/+5
|
* try to fix appveyor failure; also refactor generate_manifest.pyGiampaolo Rodola2017-11-082-3/+7
|
* #1167 give CREDITS to @matrayGiampaolo Rodola2017-11-083-2/+7
|
* Including non-unicast packets in packet count calculation (#1167)Matthew Long2017-11-081-4/+4
|
* fix #1166 (doc mistake)Giampaolo Rodola2017-11-072-3/+3
|
* provide a 'make help' commandGiampaolo Rodola2017-11-062-75/+42
|
* ifconfig.py humanize bytesGiampaolo Rodola2017-11-061-18/+38
|
* try to limit false positives on appveyor/windowsGiampaolo Rodola2017-11-041-8/+9
|
* reap_children() in a finally block in order to limit false positivesGiampaolo Rodola2017-11-041-1/+2
|
* unicode tests: use different name for test dirGiampaolo Rodola2017-11-041-5/+9
|
* fix failure on osx/travisGiampaolo Rodola2017-11-041-0/+4
|
* update MakefileGiampaolo Rodola2017-11-033-21/+13
|
* fix testGiampaolo Rodola2017-10-311-2/+2
|
* #1164 give CREDITS to @wiggin15Giampaolo Rodola2017-10-312-1/+6
|
* AIX: implement num_ctx_switches (#1164)wiggin152017-10-3116-89/+185
| | | | | | * small changes * AIX: implement num_ctx_switches
* use new PYTHON_EXEGiampaolo Rodola2017-10-303-12/+11
|
* improve logic to determine python exe locationGiampaolo Rodola2017-10-303-24/+36
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2017-10-301-1/+3
|\
| * Fix test_emulate_energy_full_not_avail (#1163)Jon Dufresne2017-10-291-1/+3
| | | | | | The value may come from two different files, must mock both.
* | add DEVNOTES file; move TODO.aix into _psutil_aix.cGiampaolo Rodola2017-10-304-18/+24
| |
* | update READMEGiampaolo Rodola2017-10-291-1/+3
|/
* try to limit occasional appveyor failureGiampaolo Rodola2017-10-293-6/+17
|
* Remove trove classifiers for untested and unsupported platforms (#1162)Jon Dufresne2017-10-291-3/+0
| | | | | Helps library users know, at a glance, what platforms are tested and supported. This helps users know if the library is suitable for integration in an existing project.
* Fix #1154: remove 'threads' method on older AIX (#1156)wiggin152017-10-285-23/+36
|
* give CREDITS to @adpag for #1159, #1160 and #1161Giampaolo Rodola2017-10-282-1/+7
|
* Fix test asserts due to leftover test subprocesses (#1161)Adrian Page2017-10-282-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reap test subprocess. The leftover child process was triggering an assert in a later test: ====================================================================== FAIL: psutil.tests.test_connections.TestConnectedSocketPairs.test_combos ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ade/projects/psutil/psutil/tests/__init__.py", line 792, in wrapper return fun(*args, **kwargs) File "/home/ade/projects/psutil/psutil/tests/test_connections.py", line 330, in test_combos self.assertEqual(len(cons), 1) AssertionError: 0 != 1 * Inherit from Base so that reap_children() cleans up the test processes. Fixes memory leak test asserts. psutil/tests/test_memory_leaks.py:334: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ psutil/tests/test_memory_leaks.py:125: in execute self.assertEqual(thisproc.children(), []) E AssertionError: Lists differ: [<psutil.Process(pid=908, name... != [] E E First list contains 10 additional elements. E First extra element 0: E <psutil.Process(pid=908, name='python2.7') at 34513317008> E E + [] E - [<psutil.Process(pid=908, name='python2.7') at 34513317008>, E - <psutil.Process(pid=909, name='python2.7') at 34459063760>, E - <psutil.Process(pid=910, name='python2.7') at 34459064464>, E - <psutil.Process(pid=911, name='python2.7') at 34513749456>, E - <psutil.Process(pid=912, name='python2.7') at 34513749520>, E - <psutil.Process(pid=913, name='python2.7') at 34513751184>, E - <psutil.Process(pid=914, name='python2.7') at 34513751120>, E - <psutil.Process(pid=915, name='python2.7') at 34513751312>, E - <psutil.Process(pid=916, name='python2.7') at 34513751376>, E - <psutil.Process(pid=917, name='python2.7') at 34513748176>]
* Fix network tests for newer ifconfig versions. (#1160)Adrian Page2017-10-281-9/+13
| | | | | | | | | | | | | | | | | | Arch Linux and Ubuntu 17.10 use a newer ifconfig version than other distributions and that changes the statistics output text formatting, causing the following tests to fail: psutil.tests.test_linux.TestSystemNetwork.test_net_if_stats psutil.tests.test_linux.TestSystemNetwork.test_net_io_counters MTU becomes lower case, colons are replaced with spaces, and packets and bytes are on the same line. Example ifconfig output: enp2s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether a8:20:66:04:4c:45 txqueuelen 1000 (Ethernet) RX packets 1396351 bytes 1928499072 (1.7 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 750492 bytes 185338978 (176.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16
* Fix pre-commit hook for python 3.x. (#1159)Adrian Page2017-10-281-1/+1
| | | | | | | | | | sh() return value is a string due to Popen(universal_newlines=True). Traceback (most recent call last): File ".git/hooks/pre-commit", line 118, in <module> main() File ".git/hooks/pre-commit", line 78, in main py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and TypeError: must be str or None, not bytes
* revert last commitGiampaolo Rodola2017-10-261-4/+2
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2017-10-265-60/+45
|\
| * Small changes (#1158)wiggin152017-10-265-60/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix valid_types in memory_percent pfullmem._fields is always added twice to valid_types so the message about invalid memtype lists the types twice too. pfullmem is available on all platforms and is always the same as or a superset of pmem. We can look at its fields only to get all valid_types. Also we can check whether to use memory_full_info or not by checking the fields of pfullmem vs. pmem instead of using hard coded mem types. * remove workaround made for Solaris on AIX The problem described in the comment doesn't apply for AIX * update "oneshot" table in documentation * Removed "nice" and "ionice" which are not boosted * Removed "~Process." prefix which was only on a few methods and not others * Added AIX Fixes #1157 * small AIX additions to docs
* | print full mod representation when running testGiampaolo Rodola2017-10-261-2/+4
|/
* try to fix appveyorGiampaolo Rodola2017-10-201-1/+1
|
* update history for #1151Giampaolo Rodola2017-10-201-0/+1
|
* pep81151-PSUTIL_TESTING_env_varGiampaolo Rodola2017-10-203-2/+5
|
* automatically set PSUTIL_TEST env var during testsGiampaolo Rodola2017-10-203-14/+2
|
* #1150 give credits to @akosthekissGiampaolo Rodola2017-10-203-1/+15
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2017-10-206-23/+37
|\
| * Terminate Windows processes with SIGTERM code rather than 0 (#1150)Akos Kiss2017-10-202-6/+7
| | | | | | | | | | | | | | | | If the TerminateProcess WinAPI function is called with 0, then the exit code of the terminated process (e.g., observed by its parent) will be 0. However, this is usually associated with successful execution. Any other exit code could be used to signal forced termination, but perhaps the value of SIGTERM is the most meaningful.
| * fix or skip remaining AIX unit tests (#1145)wiggin152017-10-195-17/+30
| | | | | | | | | | | | * create_exe should use default code if c_code is True * fix or skip remaining AIX unit tests
* | make pre-release is deleting wheelsGiampaolo Rodola2017-10-121-2/+1
|/
* pre releaserelease-5.4.0Giampaolo Rodola2017-10-123-4/+8
|
* #1127: give credits to @jakub-bacicGiampaolo Rodola2017-10-112-0/+6
|
* #1127 Fix reference counting bug in open_files impl on OSX (#1144)Jakub Bacic2017-10-111-1/+2
|
* work around travis failureGiampaolo Rodola2017-10-061-18/+3
|