test262/tools/packaging/common.py

19 lines
661 B
Python
Raw Normal View History

# Copyright (c) 2012 Ecma International. All rights reserved.
2015-07-17 17:42:45 +02:00
# This code is governed by the BSD license found in the LICENSE file.
#--Imports---------------------------------------------------------------------
import parseTestRecord
#--Stubs-----------------------------------------------------------------------
#--Globals---------------------------------------------------------------------
#--Helpers--------------------------------------------------------------------#
def convertDocString(docString):
envelope = parseTestRecord.parseTestRecord(docString, '')
envelope.pop('header', None)
envelope.pop('test', None)
return envelope