File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ def run(self):
373
373
url = 'https://pythonnet.github.io/' ,
374
374
license = 'MIT' ,
375
375
author = "The Python for .Net developers" ,
376
- email = "pythondotnet@python.org" ,
376
+ author_email = "pythondotnet@python.org" ,
377
377
setup_requires = setup_requires ,
378
378
long_description = _get_long_description (),
379
379
ext_modules = [
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ public static void LoadSpecificArgs()
12
12
using ( new PythonEngine ( args ) )
13
13
using ( var argv = new PyList ( Runtime . Runtime . PySys_GetObject ( "argv" ) ) )
14
14
{
15
- Assert . That ( argv [ 0 ] . ToString ( ) == args [ 0 ] ) ;
16
- Assert . That ( argv [ 1 ] . ToString ( ) == args [ 1 ] ) ;
15
+ Assert . AreEqual ( args [ 0 ] , argv [ 0 ] . ToString ( ) ) ;
16
+ Assert . AreEqual ( args [ 1 ] , argv [ 1 ] . ToString ( ) ) ;
17
17
}
18
18
}
19
19
@@ -23,7 +23,7 @@ public static void LoadDefaultArgs()
23
23
using ( new PythonEngine ( ) )
24
24
using ( var argv = new PyList ( Runtime . Runtime . PySys_GetObject ( "argv" ) ) )
25
25
{
26
- Assert . That ( argv . Length ( ) != 0 ) ;
26
+ Assert . AreNotEqual ( 0 , argv . Length ( ) ) ;
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void TestMessage()
47
47
[ Test ]
48
48
public void TestNoError ( )
49
49
{
50
- var e = new PythonException ( ) ; //There is no PyErr to fetch
50
+ var e = new PythonException ( ) ; // There is no PyErr to fetch
51
51
Assert . AreEqual ( "" , e . Message ) ;
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -16,14 +16,13 @@ public void TestPyTupleEmpty()
16
16
}
17
17
18
18
[ Test ]
19
- [ ExpectedException ( "Python.Runtime.PythonException" ) ]
20
19
public void TestPyTupleInvalidAppend ( )
21
20
{
22
21
using ( Py . GIL ( ) )
23
22
{
24
23
PyObject s = new PyString ( "foo" ) ;
25
24
var t = new PyTuple ( ) ;
26
- t . Concat ( s ) ;
25
+ Assert . Throws < PythonException > ( ( ) => t . Concat ( s ) ) ;
27
26
}
28
27
}
29
28
You can’t perform that action at this time.
0 commit comments