From: Michal Simek Date: Tue, 21 Aug 2018 07:48:46 +0200 Subject: [U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe In-Reply-To: <90229ec0-fe02-d802-759b-6b1c49018aad@wwwdotorg.org> References: <20170914213450.28754-1-paul.burton@imgtec.com> <20170914213450.28754-4-paul.burton@imgtec.com> <3942db1d-1f7d-c398-a32a-9d026e27fae8@xilinx.com> <90229ec0-fe02-d802-759b-6b1c49018aad@wwwdotorg.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20.8.2018 23:19, Stephen Warren wrote: > On 08/06/2018 04:42 AM, Michal Simek wrote: >> On 14.9.2017 23:34, Paul Burton wrote: >>> In python 3.x the configparser module is named with all lower case. >>> Import it as such in order to avoid errors when running on python 3.x, >>> and fall back to the CamelCase version in order to keep working with >>> python 2.x. > ... >> I have bisect issue with test/py framework on my PC and I end up on this >> patch. >> >> Below is the issue I am getting. >> >> And here are my python version. >> [u-boot](test)$ python3 --version >> Python 3.4.3 >> [u-boot](test)$ python --version >> Python 2.7.6 >> [u-boot](test)$ which python >> /usr/bin/python >> >> >> Do you know what could be the issue? > > I honestly can't think why the configuration parsing could cause the > kind of issue that was shown in the test log. It seems like there's a > bug in the test/py code w.r.t. receiving characters from the target > outside the ASCII range, which should be applicable in all cases, but I > can't see how that would only happen based on how configparser was > imported. hm. ok. Thanks, Michal