@@ -9,15 +9,16 @@ def test_module(self):
99 with util .uncache ('__hello__' ):
1010 module = machinery .FrozenImporter .load_module ('__hello__' )
1111 check = {'__name__' : '__hello__' , '__file__' : '<frozen>' ,
12- '__package__' : '' }
12+ '__package__' : '' , '__loader__' : machinery . FrozenImporter }
1313 for attr , value in check .items ():
1414 self .assertEqual (getattr (module , attr ), value )
1515
1616 def test_package (self ):
1717 with util .uncache ('__phello__' ):
1818 module = machinery .FrozenImporter .load_module ('__phello__' )
1919 check = {'__name__' : '__phello__' , '__file__' : '<frozen>' ,
20- '__package__' : '__phello__' , '__path__' : ['__phello__' ]}
20+ '__package__' : '__phello__' , '__path__' : ['__phello__' ],
21+ '__loader__' : machinery .FrozenImporter }
2122 for attr , value in check .items ():
2223 attr_value = getattr (module , attr )
2324 self .assertEqual (attr_value , value ,
@@ -28,7 +29,8 @@ def test_lacking_parent(self):
2829 with util .uncache ('__phello__' , '__phello__.spam' ):
2930 module = machinery .FrozenImporter .load_module ('__phello__.spam' )
3031 check = {'__name__' : '__phello__.spam' , '__file__' : '<frozen>' ,
31- '__package__' : '__phello__' }
32+ '__package__' : '__phello__' ,
33+ '__loader__' : machinery .FrozenImporter }
3234 for attr , value in check .items ():
3335 attr_value = getattr (module , attr )
3436 self .assertEqual (attr_value , value ,
0 commit comments