@@ -76,7 +76,7 @@ def test_attributes(self):
76
76
bs = Bootstrap ().get_bootstrap ("sdl2" , self .ctx )
77
77
self .assertEqual (bs .name , "sdl2" )
78
78
self .assertEqual (bs .jni_dir , "sdl2/jni" )
79
- self .assertEqual (bs .get_build_dir_name (), "sdl2-python3 " )
79
+ self .assertEqual (bs .get_build_dir_name (), "sdl2" )
80
80
81
81
# bs.dist_dir should raise an error if there is no distribution to query
82
82
bs .distribution = None
@@ -100,7 +100,7 @@ def test_build_dist_dirs(self):
100
100
bs = Bootstrap .get_bootstrap ("sdl2" , self .ctx )
101
101
102
102
self .assertTrue (
103
- bs .get_build_dir ().endswith ("build/bootstrap_builds/sdl2-python3 " )
103
+ bs .get_build_dir ().endswith ("build/bootstrap_builds/sdl2" )
104
104
)
105
105
self .assertTrue (bs .get_dist_dir ("test_prj" ).endswith ("dists/test_prj" ))
106
106
self .assertTrue (
@@ -181,8 +181,8 @@ def test_expand_dependencies_with_pure_python_package(self):
181
181
expanded_result = expand_dependencies (
182
182
["python3" , "kivy" , "peewee" ], self .ctx
183
183
)
184
- # we expect to have two results (one for python2 and one for python3)
185
- self .assertEqual (len (expanded_result ), 2 )
184
+ # we expect to one results for python3
185
+ self .assertEqual (len (expanded_result ), 1 )
186
186
self .assertIsInstance (expanded_result , list )
187
187
for i in expanded_result :
188
188
self .assertIsInstance (i , list )
@@ -244,11 +244,6 @@ def _add_sdl2_conflicting_recipe(name, ctx):
244
244
)
245
245
self .assertEqual (bs .name , "service_only" )
246
246
247
- # Test wrong recipes
248
- wrong_recipes = {"python2" , "python3" , "pyjnius" }
249
- bs = Bootstrap .get_bootstrap_from_recipes (wrong_recipes , self .ctx )
250
- self .assertIsNone (bs )
251
-
252
247
@mock .patch ("pythonforandroid.bootstrap.ensure_dir" )
253
248
def test_prepare_dist_dir (self , mock_ensure_dir ):
254
249
"""A test which will initialize a bootstrap and will check if the
0 commit comments