[Pkg] The Trunk: Tests-jr.366.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 5 16:12:21 UTC 2017


David T. Lewis uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-jr.366.mcz

==================== Summary ====================

Name: Tests-jr.366
Author: jr
Time: 28 February 2017, 2:27:19.211388 pm
UUID: a91286d9-df10-e24e-b128-dc03557db77a
Ancestors: Tests-eem.363

fix: MCEnvironmentLoadTest must import required classes

the "curiously" comment is apparently out of date

=============== Diff against Tests-eem.363 ===============

Item was changed:
  ----- Method: MCEnvironmentLoadTest>>setUp (in category 'running') -----
  setUp
  	environment := Environment named: 'MCEnvironmentLoadTest'.
  	
  	"This is required in order to not importSelf more than once"
  	environment stopObserving: environment. 
  	
  	"This is required to make own declarations visible in environment"
  	environment importSelf.
  	
  	"Import the required PoolDictionary used by the package"
  	environment bindingOf: #MCMockAPoolDictionary
+ 		ifAbsent: [environment from: Smalltalk globals import: #MCMockAPoolDictionary].
+ 	environment from: Smalltalk globals import: #(MCMock MCSnapshotTest Object).!
- 		ifAbsent: [environment from: Smalltalk globals import: #MCMockAPoolDictionary]
- 
- 	"Curiously, the superclass MCMock will be used, but does not have to be imported, don't ask why..."!



More information about the Packages mailing list