mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-12-08 06:09:49 +00:00
Fix using deprecated api in tests.
This commit is contained in:
parent
4bff55db9f
commit
2122b46b84
5 changed files with 29 additions and 29 deletions
|
|
@ -2,12 +2,12 @@
|
|||
# coding: utf-8
|
||||
|
||||
from nose.tools import *
|
||||
from msgpack import packs, unpacks
|
||||
from msgpack import packb, unpackb
|
||||
|
||||
import datetime
|
||||
|
||||
def test_raise_on_find_unsupported_value():
|
||||
assert_raises(TypeError, packs, datetime.datetime.now())
|
||||
assert_raises(TypeError, packb, datetime.datetime.now())
|
||||
|
||||
if __name__ == '__main__':
|
||||
from nose import main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue