<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psutil.git/psutil/tests, branch debug-c-macro</title>
<subtitle>github.com: giampaolo/psutil.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/'/>
<entry>
<title>Changes to debug() function:</title>
<updated>2021-10-14T20:52:32+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-14T20:52:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=e72438f08ac7aa93b33fddcb11298ece28d0150d'/>
<id>e72438f08ac7aa93b33fddcb11298ece28d0150d</id>
<content type='text'>
* use str() if exception derives from OSError / EnvironmentError. This
way we will print the file name (if it exists).
* use repr() for any other exception
* add tests for debug() function
* backport contextlib.redirect_stderr

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* use str() if exception derives from OSError / EnvironmentError. This
way we will print the file name (if it exists).
* use repr() for any other exception
* add tests for debug() function
* backport contextlib.redirect_stderr

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[Linux] convert /dev/root device to real path (fixes #1999) (#2000)</title>
<updated>2021-10-14T19:34:57+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-14T19:34:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=4d03c917561297de1e6017059c60eb879cf8353c'/>
<id>4d03c917561297de1e6017059c60eb879cf8353c</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>remove dead windows code</title>
<updated>2021-10-14T17:02:05+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-14T17:02:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=74c4d65957379b17fb82aa59a3ecdbba209a7cd4'/>
<id>74c4d65957379b17fb82aa59a3ecdbba209a7cd4</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: move per-module imports at the top of the file(s)</title>
<updated>2021-10-14T15:16:23+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-14T15:16:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=4e5626d05e876ef0630e93976449de309e18b499'/>
<id>4e5626d05e876ef0630e93976449de309e18b499</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#1995)</title>
<updated>2021-10-08T06:23:01+00:00</updated>
<author>
<name>Karthikeyan Singaravelan</name>
<email>tir.karthi@gmail.com</email>
</author>
<published>2021-10-08T06:23:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=abbf5e42b396e2d6e132364a15b66d94f28dc62f'/>
<id>abbf5e42b396e2d6e132364a15b66d94f28dc62f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>move/rename tests re. to #1955</title>
<updated>2021-10-05T18:24:20+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-05T18:24:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=5b4ee076dd570454eee99fb41cb09989501220ed'/>
<id>5b4ee076dd570454eee99fb41cb09989501220ed</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle ENAMETOOLONG on Linux (#1940) (#1955)</title>
<updated>2021-10-05T18:13:38+00:00</updated>
<author>
<name>Nikita Radchenko</name>
<email>nradchenko@protonmail.com</email>
</author>
<published>2021-10-05T18:13:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=741c143ea371ef3ecf83254341f443182a9547f1'/>
<id>741c143ea371ef3ecf83254341f443182a9547f1</id>
<content type='text'>
When resolving process file descriptors symlinks in procfs (/proc/PID/fd/FD),
the kernel can only deal with file paths no longer than PAGE_SIZE
(which usually equals to PATH_MAX).

https://elixir.bootlin.com/linux/v5.12/source/fs/proc/base.c#L1759

Resolving fd symlink that corresponds to a file with a path longer
than PATH_MAX with readlink(2) would result in ENAMETOOLONG error
(see details in #1940).

We can do nothing to fix this in userspace; therefore these errors
should be ignored.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When resolving process file descriptors symlinks in procfs (/proc/PID/fd/FD),
the kernel can only deal with file paths no longer than PAGE_SIZE
(which usually equals to PATH_MAX).

https://elixir.bootlin.com/linux/v5.12/source/fs/proc/base.c#L1759

Resolving fd symlink that corresponds to a file with a path longer
than PATH_MAX with readlink(2) would result in ENAMETOOLONG error
(see details in #1940).

We can do nothing to fix this in userspace; therefore these errors
should be ignored.
</pre>
</div>
</content>
</entry>
<entry>
<title>use ThreadTask as a ctx manager</title>
<updated>2021-10-04T22:05:57+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-04T22:05:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=71e56f7141caa8cc451be23998d250c62b58f5a1'/>
<id>71e56f7141caa8cc451be23998d250c62b58f5a1</id>
<content type='text'>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve custom error tracebacks and messages (#1992)</title>
<updated>2021-10-03T13:55:16+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2021-10-03T13:55:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=5d39cc9c8d8dc04862786abba0307ed9350144ce'/>
<id>5d39cc9c8d8dc04862786abba0307ed9350144ce</id>
<content type='text'>
Removal of duplicated `psutil.NoSuchProcess` text. Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=4651, name="python")
psutil.ZombieProcess: psutil.ZombieProcess process no longer exists and it's a zombie (pid=4651, name="python")
psutil.AccessDenied: psutil.AccessDenied (pid=4651, name="python")
psutil.TimeoutExpired: psutil.TimeoutExpired timeout after 5 seconds (pid=4651, name="python")
```

Now:

```
psutil.NoSuchProcess: process no longer exists (pid=4651, name="python")
psutil.ZombieProcess: process no longer exists and it's a zombie (pid=4651, name="python")
psutil.AccessDenied: (pid=4651, name="python")
psutil.TimeoutExpired: timeout after 5 seconds (pid=4651, name="python")

```
---

More info if process PID has been reused: Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=465148)
```

Now:

```
psutil.NoSuchProcess: process no longer exists and its PID has been reused (pid=465148)
```

---

Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 666
```

Now:

```
psutil.NoSuchProcess: process PID not found (pid=666)
```

--- 

Before:

```
&gt;&gt;&gt; psutil.NoSuchProcess(212, name="python")
psutil.NoSuchProcess process no longer exists (pid=212, name='python')
```

Now:

```
&gt;&gt;&gt; psutil.NoSuchProcess(212, name="python")
psutil.NoSuchProcess(pid=212, name='python', msg='process no longer exists')
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removal of duplicated `psutil.NoSuchProcess` text. Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=4651, name="python")
psutil.ZombieProcess: psutil.ZombieProcess process no longer exists and it's a zombie (pid=4651, name="python")
psutil.AccessDenied: psutil.AccessDenied (pid=4651, name="python")
psutil.TimeoutExpired: psutil.TimeoutExpired timeout after 5 seconds (pid=4651, name="python")
```

Now:

```
psutil.NoSuchProcess: process no longer exists (pid=4651, name="python")
psutil.ZombieProcess: process no longer exists and it's a zombie (pid=4651, name="python")
psutil.AccessDenied: (pid=4651, name="python")
psutil.TimeoutExpired: timeout after 5 seconds (pid=4651, name="python")

```
---

More info if process PID has been reused: Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=465148)
```

Now:

```
psutil.NoSuchProcess: process no longer exists and its PID has been reused (pid=465148)
```

---

Before:

```
psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 666
```

Now:

```
psutil.NoSuchProcess: process PID not found (pid=666)
```

--- 

Before:

```
&gt;&gt;&gt; psutil.NoSuchProcess(212, name="python")
psutil.NoSuchProcess process no longer exists (pid=212, name='python')
```

Now:

```
&gt;&gt;&gt; psutil.NoSuchProcess(212, name="python")
psutil.NoSuchProcess(pid=212, name='python', msg='process no longer exists')
```</pre>
</div>
</content>
</entry>
<entry>
<title>Add tolerance to test_linux.TestSystemVirtualMemory.test_total (#1935)</title>
<updated>2021-04-15T15:16:26+00:00</updated>
<author>
<name>Miro Hrončok</name>
<email>miro@hroncok.cz</email>
</author>
<published>2021-04-15T15:16:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psutil.git/commit/?id=ea5b2df02e39816c1f6626dd9d93ae7ede422687'/>
<id>ea5b2df02e39816c1f6626dd9d93ae7ede422687</id>
<content type='text'>
We see this test as very flaky without tolerance in Fedora and CentOS</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We see this test as very flaky without tolerance in Fedora and CentOS</pre>
</div>
</content>
</entry>
</feed>
