'Unicode name or version should not break building to tar.gz format.
Reference issue #11638.'

@unittest.skipUnless(zlib, 'requires    zlib')
def test_unicode_metadata_tgz(self):

    (dist, cmd) = self.get_cmd({'name': u'fake', 'version': u'1.0'})
    cmd.formats = ['gztar']
    cmd.ensure_finalized()
    cmd.run()
    dist_folder = join(self.tmp_dir, 'dist')
    result = os.listdir(dist_folder)
    self.assertEqual(result, ['fake-1.0.tar.gz'])
    os.remove(join(dist_folder, 'fake-1.0.tar.gz'))
