R. David Murray added the comment:

support.requires is smart.  If the caller's module is __main__, it treats the 
resources as set.  So you don't have to do anything special in your __main__ to 
make the tests runnable directly.

The tests are also run if unittest is called.  I don't know why that is, but I 
tested it on test_urllibnet, which is protected by the 'net' resource, and the 
tests ran.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18103>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to