Message96551
> - when importing fcntl, bear in mind that some systems don't have this
> module (e.g. Windows), so you should catch and silence the ImportError
would something like the following be ok?:
try:
import fcntl
except ImportError:
fcntl = False
and then:
if hasattr(socket, "SOCK_CLOEXEC") and fcntl:
tests.append(CloexecLinuxConstantTest) |
|
| Date |
User |
Action |
Args |
| 2009-12-18 07:53:02 | lekma | set | recipients:
+ lekma, pitrou |
| 2009-12-18 07:53:01 | lekma | set | messageid: <[email protected]> |
| 2009-12-18 07:53:00 | lekma | link | issue7523 messages |
| 2009-12-18 07:52:59 | lekma | create | |
|