Changeset 330
- Timestamp:
- 12/29/08 14:05:11 (3 years ago)
- Location:
- pyyaml/trunk
- Files:
-
- 2 added
- 1 removed
- 10 modified
- 35 copied
- 33 moved
-
MANIFEST.in (modified) (1 diff)
-
Makefile (modified) (1 diff)
-
setup.py (modified) (1 diff)
-
tests/data/construct-binary-py2.code (moved) (moved from pyyaml/trunk/tests/data/construct-binary.code)
-
tests/data/construct-binary-py2.data (moved) (moved from pyyaml/trunk/tests/data/construct-binary.data)
-
tests/data/construct-binary-py3.code (copied) (copied from pyyaml/trunk/tests3/data/construct-binary.code)
-
tests/data/construct-binary-py3.data (copied) (copied from pyyaml/trunk/tests3/data/construct-binary.data)
-
tests/data/construct-python-bytes-py3.code (copied) (copied from pyyaml/trunk/tests3/data/construct-python-bytes.code)
-
tests/data/construct-python-bytes-py3.data (copied) (copied from pyyaml/trunk/tests3/data/construct-python-bytes.data)
-
tests/data/construct-python-long-short-py2.code (moved) (moved from pyyaml/trunk/tests/data/construct-python-long-short.code)
-
tests/data/construct-python-long-short-py2.data (moved) (moved from pyyaml/trunk/tests/data/construct-python-long-short.data)
-
tests/data/construct-python-long-short-py3.code (copied) (copied from pyyaml/trunk/tests3/data/construct-python-long-short.code)
-
tests/data/construct-python-long-short-py3.data (copied) (copied from pyyaml/trunk/tests/data/construct-python-long-short.data)
-
tests/data/construct-python-name-module.code (modified) (1 diff)
-
tests/data/construct-python-name-module.data (modified) (1 diff)
-
tests/data/construct-python-str-utf8-py2.code (moved) (moved from pyyaml/trunk/tests/data/construct-python-str-utf8.code)
-
tests/data/construct-python-str-utf8-py2.data (moved) (moved from pyyaml/trunk/tests/data/construct-python-str-utf8.data)
-
tests/data/construct-python-str-utf8-py3.code (copied) (copied from pyyaml/trunk/tests/data/construct-python-str-utf8.code) (1 diff)
-
tests/data/construct-python-str-utf8-py3.data (copied) (copied from pyyaml/trunk/tests/data/construct-python-str-utf8.data)
-
tests/data/construct-python-unicode-ascii-py2.code (copied) (copied from pyyaml/trunk/tests/data/construct-python-unicode-ascii.code)
-
tests/data/construct-python-unicode-ascii-py2.data (copied) (copied from pyyaml/trunk/tests/data/construct-python-unicode-ascii.data)
-
tests/data/construct-python-unicode-ascii-py3.code (moved) (moved from pyyaml/trunk/tests/data/construct-python-unicode-ascii.code) (1 diff)
-
tests/data/construct-python-unicode-ascii-py3.data (moved) (moved from pyyaml/trunk/tests/data/construct-python-unicode-ascii.data)
-
tests/data/construct-python-unicode-utf8-py2.code (copied) (copied from pyyaml/trunk/tests/data/construct-python-unicode-utf8.code)
-
tests/data/construct-python-unicode-utf8-py2.data (copied) (copied from pyyaml/trunk/tests/data/construct-python-unicode-utf8.data)
-
tests/data/construct-python-unicode-utf8-py3.code (moved) (moved from pyyaml/trunk/tests/data/construct-python-unicode-utf8.code) (1 diff)
-
tests/data/construct-python-unicode-utf8-py3.data (moved) (moved from pyyaml/trunk/tests/data/construct-python-unicode-utf8.data)
-
tests/data/construct-str-utf8-py2.code (copied) (copied from pyyaml/trunk/tests/data/construct-str-utf8.code)
-
tests/data/construct-str-utf8-py2.data (copied) (copied from pyyaml/trunk/tests/data/construct-str-utf8.data)
-
tests/data/construct-str-utf8-py3.code (moved) (moved from pyyaml/trunk/tests/data/construct-str-utf8.code) (1 diff)
-
tests/data/construct-str-utf8-py3.data (moved) (moved from pyyaml/trunk/tests/data/construct-str-utf8.data)
-
tests/data/emitting-unacceptable-unicode-character-bug-py2.code (moved) (moved from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.code)
-
tests/data/emitting-unacceptable-unicode-character-bug-py2.data (moved) (moved from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.data)
-
tests/data/emitting-unacceptable-unicode-character-bug-py2.skip-ext (copied) (copied from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.skip-ext)
-
tests/data/emitting-unacceptable-unicode-character-bug-py3.code (copied) (copied from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.code) (1 diff)
-
tests/data/emitting-unacceptable-unicode-character-bug-py3.data (copied) (copied from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.data)
-
tests/data/emitting-unacceptable-unicode-character-bug-py3.skip-ext (moved) (moved from pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug.skip-ext)
-
tests/data/serializer-is-already-opened.dumper-error (modified) (1 diff)
-
tests/data/serializer-is-closed-1.dumper-error (modified) (1 diff)
-
tests/data/serializer-is-closed-2.dumper-error (modified) (1 diff)
-
tests/data/serializer-is-not-opened-1.dumper-error (modified) (1 diff)
-
tests/data/serializer-is-not-opened-2.dumper-error (modified) (1 diff)
-
tests/lib (added)
-
tests/lib/canonical.py (moved) (moved from pyyaml/trunk/tests/canonical.py)
-
tests/lib/test_all.py (moved) (moved from pyyaml/trunk/tests/test_all.py)
-
tests/lib/test_appliance.py (moved) (moved from pyyaml/trunk/tests/test_appliance.py) (1 diff)
-
tests/lib/test_build.py (moved) (moved from pyyaml/trunk/tests/test_build.py)
-
tests/lib/test_build_ext.py (moved) (moved from pyyaml/trunk/tests/test_build_ext.py)
-
tests/lib/test_canonical.py (moved) (moved from pyyaml/trunk/tests/test_canonical.py)
-
tests/lib/test_constructor.py (moved) (moved from pyyaml/trunk/tests/test_constructor.py)
-
tests/lib/test_emitter.py (moved) (moved from pyyaml/trunk/tests/test_emitter.py)
-
tests/lib/test_errors.py (moved) (moved from pyyaml/trunk/tests/test_errors.py) (1 diff)
-
tests/lib/test_mark.py (moved) (moved from pyyaml/trunk/tests/test_mark.py)
-
tests/lib/test_reader.py (moved) (moved from pyyaml/trunk/tests/test_reader.py)
-
tests/lib/test_recursive.py (moved) (moved from pyyaml/trunk/tests/test_recursive.py)
-
tests/lib/test_representer.py (moved) (moved from pyyaml/trunk/tests/test_representer.py)
-
tests/lib/test_resolver.py (moved) (moved from pyyaml/trunk/tests/test_resolver.py)
-
tests/lib/test_structure.py (moved) (moved from pyyaml/trunk/tests/test_structure.py)
-
tests/lib/test_tokens.py (moved) (moved from pyyaml/trunk/tests/test_tokens.py)
-
tests/lib/test_yaml.py (moved) (moved from pyyaml/trunk/tests/test_yaml.py)
-
tests/lib/test_yaml_ext.py (moved) (moved from pyyaml/trunk/tests/test_yaml_ext.py)
-
tests/lib3 (added)
-
tests/lib3/canonical.py (copied) (copied from pyyaml/trunk/tests3/canonical.py)
-
tests/lib3/test_all.py (copied) (copied from pyyaml/trunk/tests3/test_all.py)
-
tests/lib3/test_appliance.py (copied) (copied from pyyaml/trunk/tests3/test_appliance.py) (2 diffs)
-
tests/lib3/test_build.py (copied) (copied from pyyaml/trunk/tests3/test_build.py)
-
tests/lib3/test_build_ext.py (copied) (copied from pyyaml/trunk/tests3/test_build_ext.py)
-
tests/lib3/test_canonical.py (copied) (copied from pyyaml/trunk/tests3/test_canonical.py)
-
tests/lib3/test_constructor.py (copied) (copied from pyyaml/trunk/tests3/test_constructor.py) (2 diffs)
-
tests/lib3/test_emitter.py (copied) (copied from pyyaml/trunk/tests3/test_emitter.py)
-
tests/lib3/test_errors.py (copied) (copied from pyyaml/trunk/tests3/test_errors.py) (1 diff)
-
tests/lib3/test_mark.py (copied) (copied from pyyaml/trunk/tests3/test_mark.py)
-
tests/lib3/test_reader.py (copied) (copied from pyyaml/trunk/tests3/test_reader.py)
-
tests/lib3/test_recursive.py (copied) (copied from pyyaml/trunk/tests3/test_recursive.py)
-
tests/lib3/test_representer.py (copied) (copied from pyyaml/trunk/tests3/test_representer.py)
-
tests/lib3/test_resolver.py (copied) (copied from pyyaml/trunk/tests3/test_resolver.py)
-
tests/lib3/test_structure.py (copied) (copied from pyyaml/trunk/tests3/test_structure.py)
-
tests/lib3/test_tokens.py (copied) (copied from pyyaml/trunk/tests3/test_tokens.py)
-
tests/lib3/test_yaml.py (copied) (copied from pyyaml/trunk/tests3/test_yaml.py)
-
tests/lib3/test_yaml_ext.py (copied) (copied from pyyaml/trunk/tests3/test_yaml_ext.py)
-
tests3 (deleted)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/MANIFEST.in
r326 r330 1 1 include README LICENSE CHANGES setup.py 2 2 recursive-include examples *.py *.cfg *.yaml 3 recursive-include tests *.py4 3 recursive-include tests/data * 4 recursive-include tests/lib *.py 5 recursive-include tests/lib3 *.py -
pyyaml/trunk/Makefile
r322 r330 25 25 26 26 test: build 27 ${PYTHON} tests/ test_build.py ${TEST}27 ${PYTHON} tests/lib/test_build.py ${TEST} 28 28 29 29 testext: buildext 30 ${PYTHON} tests/ test_build_ext.py ${TEST}30 ${PYTHON} tests/lib/test_build_ext.py ${TEST} 31 31 32 32 testall: -
pyyaml/trunk/setup.py
r328 r330 289 289 sys.path.insert(0, build_cmd.build_lib) 290 290 if sys.version_info[0] < 3: 291 sys.path.insert(0, 'tests ')291 sys.path.insert(0, 'tests/lib') 292 292 else: 293 sys.path.insert(0, 'tests 3')293 sys.path.insert(0, 'tests/lib3') 294 294 import test_all 295 295 test_all.main([]) -
pyyaml/trunk/tests/data/construct-python-name-module.code
r322 r330 1 [ file, yaml.Loader, yaml.dump, abs, yaml.tokens]1 [str, yaml.Loader, yaml.dump, abs, yaml.tokens] -
pyyaml/trunk/tests/data/construct-python-name-module.data
r146 r330 1 - !!python/name: file1 - !!python/name:str 2 2 - !!python/name:yaml.Loader 3 3 - !!python/name:yaml.dump -
pyyaml/trunk/tests/data/construct-python-str-utf8-py3.code
r144 r330 1 u'\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430'.encode('utf-8') 1 '\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430' -
pyyaml/trunk/tests/data/construct-python-unicode-ascii-py3.code
r144 r330 1 u"ascii string"1 "ascii string" -
pyyaml/trunk/tests/data/construct-python-unicode-utf8-py3.code
r144 r330 1 u'\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430'1 '\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430' -
pyyaml/trunk/tests/data/construct-str-utf8-py3.code
r144 r330 1 u'\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430'1 '\u042d\u0442\u043e \u0443\u043d\u0438\u043a\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430' -
pyyaml/trunk/tests/data/emitting-unacceptable-unicode-character-bug-py3.code
r153 r330 1 u"\udd00"1 "\udd00" -
pyyaml/trunk/tests/data/serializer-is-already-opened.dumper-error
r322 r330 1 dumper = yaml.Dumper(StringIO .StringIO())1 dumper = yaml.Dumper(StringIO()) 2 2 dumper.open() 3 3 dumper.open() -
pyyaml/trunk/tests/data/serializer-is-closed-1.dumper-error
r322 r330 1 dumper = yaml.Dumper(StringIO .StringIO())1 dumper = yaml.Dumper(StringIO()) 2 2 dumper.open() 3 3 dumper.close() -
pyyaml/trunk/tests/data/serializer-is-closed-2.dumper-error
r322 r330 1 dumper = yaml.Dumper(StringIO .StringIO())1 dumper = yaml.Dumper(StringIO()) 2 2 dumper.open() 3 3 dumper.close() -
pyyaml/trunk/tests/data/serializer-is-not-opened-1.dumper-error
r322 r330 1 dumper = yaml.Dumper(StringIO .StringIO())1 dumper = yaml.Dumper(StringIO()) 2 2 dumper.close() -
pyyaml/trunk/tests/data/serializer-is-not-opened-2.dumper-error
r322 r330 1 dumper = yaml.Dumper(StringIO .StringIO())1 dumper = yaml.Dumper(StringIO()) 2 2 dumper.serialize(yaml.ScalarNode(tag='!foo', value='bar')) -
pyyaml/trunk/tests/lib/test_appliance.py
r325 r330 24 24 if os.path.isfile(os.path.join(directory, filename)): 25 25 base, ext = os.path.splitext(filename) 26 if base.endswith('-py3'): 27 continue 26 28 filenames.setdefault(base, []).append(ext) 27 29 filenames = filenames.items() -
pyyaml/trunk/tests/lib/test_errors.py
r322 r330 51 51 code = open(error_filename, 'rb').read() 52 52 try: 53 import yaml, StringIO 53 import yaml 54 from StringIO import StringIO 54 55 exec code 55 56 except yaml.YAMLError, exc: -
pyyaml/trunk/tests/lib3/test_appliance.py
r328 r330 2 2 import sys, os, os.path, types, traceback, pprint 3 3 4 DATA = 'tests 3/data'4 DATA = 'tests/data' 5 5 6 6 def find_test_functions(collections): … … 22 22 if os.path.isfile(os.path.join(directory, filename)): 23 23 base, ext = os.path.splitext(filename) 24 if base.endswith('-py2'): 25 continue 24 26 filenames.setdefault(base, []).append(ext) 25 27 filenames = sorted(filenames.items()) -
pyyaml/trunk/tests/lib3/test_constructor.py
r329 r330 13 13 def _make_objects(): 14 14 global MyLoader, MyDumper, MyTestClass1, MyTestClass2, MyTestClass3, YAMLObject1, YAMLObject2, \ 15 AnObject, AnInstance, AState, ACustomState, NewArgs, NewArgsWithState, \ 16 Reduce, ReduceWithState, MyInt, MyList, MyDict, FixedOffset, execute 15 AnObject, AnInstance, AState, ACustomState, InitArgs, InitArgsWithState, \ 16 NewArgs, NewArgsWithState, Reduce, ReduceWithState, MyInt, MyList, MyDict, \ 17 FixedOffset, execute 17 18 18 19 class MyLoader(yaml.Loader): … … 157 158 def __setstate__(self, state): 158 159 self.baz = state 160 161 InitArgs = NewArgs 162 163 InitArgsWithState = NewArgsWithState 159 164 160 165 class Reduce(AnObject): -
pyyaml/trunk/tests/lib3/test_errors.py
r328 r330 51 51 code = open(error_filename, 'rb').read() 52 52 try: 53 import yaml, io 53 import yaml 54 from io import StringIO 54 55 exec(code) 55 56 except yaml.YAMLError as exc:
