Changeset 4815
- Timestamp:
- 05/24/09 02:38:22 (4 years ago)
- Location:
- branch/UMPA
- Files:
-
- 2 modified
-
tests/unit/test_sniffing/test_libpcap/test_pypcap.py (modified) (1 diff)
-
umpa/sniffing/libpcap/pypcap.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/UMPA/tests/unit/test_sniffing/test_libpcap/test_pypcap.py
r4810 r4815 63 63 "propably not sufficent priviliges.") 64 64 65 def test_findalldevs(self): 66 try: 67 assert pypcap.findalldevs() == pcap.findalldevs() 68 except UMPASniffingException: 69 py.test.skip("no suitable devices for sniffing found. " 70 "propably not sufficent priviliges.") 71 65 72 def test_loop_and_filter(self): 66 73 # XXX it would rather looped than failing -
branch/UMPA/umpa/sniffing/libpcap/pypcap.py
r4810 r4815 39 39 return result 40 40 41 def findalldevs(): 42 try: 43 result = pcap.findalldevs() 44 except OSError, msg: 45 raise UMPASniffingException(msg) 46 return result 47 41 48 class open_live(open_live): 42 49 def __init__(self, device=None, snaplen=1024, promisc=True, to_ms=0):
