diff options
author | Brett Cannon <brett@python.org> | 2012-11-18 01:46:26 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-11-18 01:46:26 (GMT) |
commit | d18772650465b5a04e1fd1439c13ffc152666703 (patch) | |
tree | 407db06b4189b0db2bedafe8879e91ba428edb6e /Lib/test/test_winreg.py | |
parent | 8f1fefab9a0816dd9fb089a7a0398e195a8e4b97 (diff) | |
download | cpython-d18772650465b5a04e1fd1439c13ffc152666703.zip cpython-d18772650465b5a04e1fd1439c13ffc152666703.tar.gz cpython-d18772650465b5a04e1fd1439c13ffc152666703.tar.bz2 |
Issue #10966: Remove the concept of unexpected skipped tests.
The concept of what was unexpected was typically defined as "some
depencendy wasn't installed", which isn't unexpected at all as it's
totally optional. Since it confuses new contributors as they think
something is wrong with their installation it seems sensible to get
rid of the concept.
This change also adds the concept of optional tests that are required
to work on a specific platform(s) (e.g. test_winreg on Windows). This
should help catch compile issues instead of a test being blindly
skipped even when it should have run.
The skipped test list in the future can also print out the reason for
being skipped to make it more obvious as to why the skipping occurred.
Diffstat (limited to 'Lib/test/test_winreg.py')
-rw-r--r-- | Lib/test/test_winreg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index 55163c9..6b10047 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -8,7 +8,7 @@ threading = support.import_module("threading") from platform import machine # Do this first so test will be skipped if module doesn't exist -support.import_module('winreg') +support.import_module('winreg', required_on=['win']) # Now import everything from winreg import * |