Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
73a50725
Commit
73a50725
authored
Aug 03, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecation warning in test_binascii.
parent
9d196959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_binascii.py
Lib/test/test_binascii.py
+2
-2
No files found.
Lib/test/test_binascii.py
View file @
73a50725
...
@@ -26,10 +26,10 @@ class BinASCIITest(unittest.TestCase):
...
@@ -26,10 +26,10 @@ class BinASCIITest(unittest.TestCase):
prefixes
.
extend
([
"crc_"
,
"rlecode_"
,
"rledecode_"
])
prefixes
.
extend
([
"crc_"
,
"rlecode_"
,
"rledecode_"
])
for
prefix
in
prefixes
:
for
prefix
in
prefixes
:
name
=
prefix
+
suffix
name
=
prefix
+
suffix
self
.
assert
_
(
callable
(
getattr
(
binascii
,
name
)
))
self
.
assert
True
(
hasattr
(
getattr
(
binascii
,
name
),
'__call__'
))
self
.
assertRaises
(
TypeError
,
getattr
(
binascii
,
name
))
self
.
assertRaises
(
TypeError
,
getattr
(
binascii
,
name
))
for
name
in
(
"hexlify"
,
"unhexlify"
):
for
name
in
(
"hexlify"
,
"unhexlify"
):
self
.
assert
_
(
callable
(
getattr
(
binascii
,
name
)
))
self
.
assert
True
(
hasattr
(
getattr
(
binascii
,
name
),
'__call__'
))
self
.
assertRaises
(
TypeError
,
getattr
(
binascii
,
name
))
self
.
assertRaises
(
TypeError
,
getattr
(
binascii
,
name
))
def
test_base64valid
(
self
):
def
test_base64valid
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment