Manuscript (Case [Issue]22879) RPackage - removeFromSystem does not remove extension protocols

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

Manuscript (Case [Issue]22879) RPackage - removeFromSystem does not remove extension protocols

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  RPackage: 1. Pharo Image  •  You are subscribed to this case
Test to show the problem (RPackageTestMockClass is an empty class created)

testRemoveFromSystemRemovesProtocols
| class |
class := RPackageTestMockClass.
self assert: class protocols isEmpty.

RPackageOrganizer default createPackageNamed: 'RPackage-MockPackage'.
class compile: 'aMethod
^ 1' classified: '*RPackage-MockPackage'.

self assert: class protocols size equals: 1.

(RPackageOrganizer default packageNamed: 'RPackage-MockPackage' ifAbsent: [ self deny: true description: 'RPackageMockPackage should exist since we compiled a method in it' ]) ifNotNil: #removeFromSystem.

self assert: class protocols isEmpty
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker