Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Expanded packet.py tests to test error handling.
· ebc10102
Ian Bruene
authored
Aug 22, 2017
ebc10102
Added aliases for frequently used objects
· 6e5765c2
Ian Bruene
authored
Aug 22, 2017
6e5765c2
Expand all
Hide whitespace changes
Inline
Side-by-side
pylib/packet.py
View file @
6e5765c2
...
...
@@ -1464,10 +1464,6 @@ This combats source address spoofing
raise
ControlException
(
SERR_STALL
)
warndbg
(
"
---> Restarting from the beginning,
"
"
retry #%u
\n
"
%
restarted_count
,
1
)
elif
e
.
errorcode
==
ntp
.
control
.
CERR_UNKNOWNVAR
:
e
.
message
=
(
"
CERR_UNKNOWNVAR from ntpd but
"
"
no priors given.
"
)
raise
e
elif
e
.
errorcode
==
ntp
.
control
.
CERR_BADVALUE
:
if
cap_frags
:
cap_frags
=
False
...
...
tests/pylib/test_packet.py
View file @
6e5765c2
This diff is collapsed.
Click to expand it.