ironm73 / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

DeprecationWarning with unittest #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
While running unittest of pyv8 svn changeset 187 on Ubuntu Karmic:

gauss@pmain:~/Projects/pyv8$ python PyV8.py
........................PyV8.py:772: DeprecationWarning: 
BaseException.message has been deprecated as of Python 2.6
  ctxt.eval("try { this.raiseNotImplementedError(); } catch (e) { msg = e; 
}")
......PyV8.py:735: DeprecationWarning: BaseException.message has been 
deprecated as of Python 2.6
  }""")
...
----------------------------------------------------------------------
Ran 33 tests in 4.218s

OK

Original issue reported on code.google.com by gauss...@gmail.com on 1 Jan 2010 at 5:56

GoogleCodeExporter commented 8 years ago
Use BaseException.args instead of deprecated message to follow PEP 352, please 
check out 
the source code from SVN after r188 to verify it.

thanks

Original comment by flier...@gmail.com on 2 Jan 2010 at 3:57

GoogleCodeExporter commented 8 years ago
It's ok now, thank you!

Original comment by gauss...@gmail.com on 3 Jan 2010 at 10:02