Test failure: test_platform
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
```
# python3.6 -m test test_platform -v
== CPython 3.6.0 (default, Dec 29 2016, 04:29:02) [GCC 6.2.1 20161215]
== Linux-4.
== hash algorithm: siphash24 64bit
== cwd: /tmp/test_
== encodings: locale=
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_
Run tests sequentially
0:00:00 [1/1] test_platform
test_dist_
test_linux_
test_architecture (test.test_
test_architectu
test_dist (test.test_
test_java_ver (test.test_
test_libc_ver (test.test_
test_linux_
test_mac_ver (test.test_
test_mac_
test_machine (test.test_
test_node (test.test_
test_parse_
test_platform (test.test_
test_popen (test.test_
test_processor (test.test_
test_release (test.test_
test_sys_version (test.test_
test_system (test.test_
test_system_alias (test.test_
test_uname (test.test_
test_uname_
test_version (test.test_
test_win32_ver (test.test_
=======
FAIL: test_linux_
-------
Traceback (most recent call last):
File "/usr/lib/
self.
AssertionError: 'Ubuntu' != 'Fedora'
- Ubuntu
+ Fedora
-------
Ran 24 tests in 0.724s
FAILED (failures=1, skipped=2)
test test_platform failed
test_platform failed
1 test failed:
test_platform
Total duration: 860 ms
Tests result: FAILURE
```
This test can be "fixed" by modifying the platform-
```diff
diff --git a/debian/
index 5b9b5a8..fe66d9a 100644
--- a/debian/
+++ b/debian/
@@ -31,7 +31,7 @@ Index: b/Lib/platform.py
+ # check for the Debian/Ubuntu /etc/lsb-release file first, needed so
+ # that the distribution doesn't get identified as Debian.
+ try:
-+ with open("/
++ with open(os.
+ for line in etclsbrel:
+ m = _distributor_
+ if m:
```
Other information:
I'm using the ubuntu:zesty docker image:
```
# lsb_release -rd
Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04
# apt-cache policy python3.6
python3.6:
Installed: 3.6.0-1
Candidate: 3.6.0-1
Version table:
*** 3.6.0-1 500
500 http://
100 /var/lib/
```