File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -367,14 +367,6 @@ def test_toLocaleString():
367
367
pm .eval ("(result, obj) => {result[0] = obj.toLocaleString()}" )(result , items )
368
368
assert result [0 ] == '[object Object]'
369
369
370
- # repr
371
-
372
-
373
- def test_repr_max_recursion_depth ():
374
- subprocess .check_call ('npm install crypto-js' , shell = True )
375
- CryptoJS = pm .require ('crypto-js' )
376
- assert str (CryptoJS ).__contains__ ("{'lib': {'Base': {'extend':" )
377
-
378
370
379
371
# __class__
380
372
def test___class__attribute ():
Original file line number Diff line number Diff line change @@ -126,14 +126,6 @@ class Class:
126
126
# require
127
127
128
128
129
- def test_require_correct_this ():
130
- subprocess .check_call ('npm install crypto-js' , shell = True )
131
- CryptoJS = pm .require ('crypto-js' )
132
- cipher = CryptoJS .SHA256 ("Hello, World!" ).toString ()
133
- assert cipher == "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f"
134
- subprocess .check_call ('npm uninstall crypto-js' , shell = True )
135
-
136
-
137
129
def test_require_correct_this_old_style_class ():
138
130
example = pm .eval ("""
139
131
() => {
@@ -207,12 +199,12 @@ def pyFunc():
207
199
def test_method_no_self ():
208
200
class What :
209
201
def some_method ():
210
- return 3
202
+ return 3
211
203
212
204
obj = What ()
213
205
214
206
try :
215
207
pm .eval ('x => x.some_method()' )(obj )
216
208
assert (False )
217
209
except pm .SpiderMonkeyError as e :
218
- assert 'takes 0 positional arguments but 1 was given' in str (e )
210
+ assert 'takes 0 positional arguments but 1 was given' in str (e )
You can’t perform that action at this time.
0 commit comments