Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7a420104c515b15eb714b39947f4d5a97c62c0dc90950530a9eb8d4eb8f9362
Ticket: 940ce8f95872ed87c7c86c05f8215b1182b853ca
TIP 527 breaks two namespace tests
User & Date: dgp on 2019-04-09 19:07:23
Changes

  1. icomment:
    
    The trouble is that tests in cmdMZ.test pull [timerate] into the global namespace,
    which then upsets the tests in namespace*.test that find it there unexpectedly.
    
    We want the test suite to be robust to the "-singleproc 1" option.
    
    This could be solved multiple ways.
    
    I think I prefer revising [timerate] to not pop into :: without
    an explicit [namespace import] by the programmer, which would be added to
    cmdMZ.test and balanced with a [namespace forget].
    
    Better yet, an approach that would not pull [timerate] into :: at all, but would
    pull it into the namespace tcl::test::cmdMZ where are the testing is done in
    the file cmdMZ.test. Would not even need [namespace forget]. The import
    would disappear when the testing namespace gets deleted.
    
  2. login: "dgp"
  3. mimetype: "text/plain"