X Tutup
Skip to content

Commit 72efc26

Browse files
author
Johan Brichau
committed
Fix broken parts in Pharo versions older than 12
1 parent d46d1d1 commit 72efc26

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/defineClass.superclass..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defineClass: aClassSymbol superclass: aSuperSymbol
99
superclass: (Smalltalk at: aSuperSymbol);
1010
package: self category ] ]
1111
ifFalse:[
12-
aSuperSymbol , ' subclass: #' , aClassSymbol , '
12+
model defineClass: aSuperSymbol , ' subclass: #' , aClassSymbol , '
1313
instanceVariableNames: ''''
1414
classVariableNames: ''''
1515
poolDictionaries: ''''
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
running
22
tearDown
33

4-
| package |
54
super tearDown.
65
factory cleanUp.
76
SystemVersion current major >= 12 ifFalse:[
8-
package := (Smalltalk organization packageNamed: self category).
9-
package classes do:[ :e |
10-
SmalltalkImage current removeClassNamed: e name ].
11-
Smalltalk organization
12-
removePackage: package ]
7+
(Smalltalk organization listAtCategoryNamed: self category) do:[ :e |
8+
SmalltalkImage current removeClassNamed: e ].
9+
Smalltalk organization
10+
removeCategory: self category ]

0 commit comments

Comments
 (0)
X Tutup