File tree 2 files changed +4
-10
lines changed
src/oop_ext/foundation/callback/_tests
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
2
<?eclipse-pydev version =" 1.0" ?><pydev_project >
3
3
<pydev_pathproperty name =" org.python.pydev.PROJECT_SOURCE_PATH" >
4
- <path >/${PROJECT_DIR_NAME}</path >
4
+ <path >/${PROJECT_DIR_NAME}/src </path >
5
5
</pydev_pathproperty >
6
6
<pydev_property name =" org.python.pydev.PYTHON_PROJECT_VERSION" >python interpreter</pydev_property >
7
7
<pydev_property name =" org.python.pydev.PYTHON_PROJECT_INTERPRETER" >Default</pydev_property >
Original file line number Diff line number Diff line change @@ -667,7 +667,7 @@ def After2(*args, **kwargs):
667
667
c ()
668
668
assert self .called == 1
669
669
670
- def testAfterBeforeHandleError (self , mocker ):
670
+ def testAfterBeforeHandleError (self ):
671
671
class C :
672
672
def Method (self , x ):
673
673
return x * 2
@@ -694,12 +694,6 @@ def BeforeMethod(*args):
694
694
assert self .before_called == 1
695
695
assert self .after_called == 0
696
696
697
- with pytest .raises (RuntimeError ):
698
- assert c .Method (20 ) == 40
699
-
700
- assert self .before_called == 2
701
- assert self .after_called == 0
702
-
703
697
def testKeyReusedAfterDead (self , monkeypatch ):
704
698
self ._gotten_key = False
705
699
@@ -1055,6 +1049,6 @@ def SetValue(self, value):
1055
1049
def _UpdateAValue (self , new_value ):
1056
1050
self ._a .SetValue (new_value )
1057
1051
1058
- a = B ()
1052
+ b = B ()
1059
1053
with pytest .raises (ZeroDivisionError ):
1060
- a .SetValue (5 )
1054
+ b .SetValue (5 )
You can’t perform that action at this time.
0 commit comments