>> Since the test for Bug#34027, custom--test-theme-variables, still pass
>> after the change, I didn't consider adding a test for this.  But sure,
>> it should be easy to add one.
 
> That would be very appreciated.

No problem; done in commit 423b6b62296df0558cf16f286dd268e0b49b3bce.