The Trunk: Tests-jr.366.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-jr.366.mcz

commits-2
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..."!