Skip to content

Commit 218743c

Browse files
committed
Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com
1 parent f1b373d commit 218743c

24 files changed

Lines changed: 48 additions & 23 deletions

src/typecode/prog_lexers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
#'PugLexer': ('pygments.lexers.html', 'Pug', ('pug', 'jade'), ('*.pug', '*.jade'), ('text/x-pug', 'text/x-jade')),
348348
#'PuppetLexer': ('pygments.lexers.dsls', 'Puppet', ('puppet',), ('*.pp',), ()),
349349
#'PyPyLogLexer': ('pygments.lexers.console', 'PyPy Log', ('pypylog', 'pypy'), ('*.pypylog',), ('application/x-pypylog',)),
350-
#'Python3Lexer': ('pygments.lexers.python', 'Python 3', ('python3', 'py3'), (), ('text/x-python3', 'application/x-python3')),
350+
'Python3Lexer': ('pygments.lexers.python', 'Python 3', ('python3', 'py3'), (), ('text/x-python3', 'application/x-python3')),
351351
#'Python3TracebackLexer': ('pygments.lexers.python', 'Python 3.0 Traceback', ('py3tb',), ('*.py3tb',), ('text/x-python3-traceback',)),
352352
#'PythonConsoleLexer': ('pygments.lexers.python', 'Python console session', ('pycon',), (), ('text/x-python-doctest',)),
353353
'PythonLexer': ('pygments.lexers.python', 'Python', ('python', 'py', 'sage'), ('*.py', '*.pyw', '*.sc', 'SConstruct', 'SConscript', '*.tac', '*.sage'), ('text/x-python', 'application/x-python')),

src/typecode/pygments_lexers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import fnmatch
1616
from os.path import basename
1717

18-
from pygments.lexers._mapping import LEXERS
18+
from typecode.prog_lexers import LEXERS
1919
from pygments.modeline import get_filetype_from_buffer
2020
from pygments.plugin import find_plugin_lexers
2121
from pygments.util import ClassNotFound, itervalues, guess_decode, text_type

tests/typecode/data/filetest/archive/a.tar.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Tue Jul 29 18:56:56 2008, from Unix, original
2+
size modulo 2^32 10240'
23
mimetype_file: application/gzip
34
mimetype_python: application/x-tar
45
is_file: yes

tests/typecode/data/filetest/archive/e.tar.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Tue Sep 9 01:32:36 2008, from Unix, original
2+
size modulo 2^32 10240'
23
mimetype_file: application/gzip
34
mimetype_python: application/x-tar
45
is_file: yes

tests/typecode/data/filetest/archive/file_4.26-1.diff.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Mon Sep 8 12:04:26 2008, max compression,
2+
from Unix, original size modulo 2^32 150165'
23
mimetype_file: application/gzip
34
is_file: yes
45
is_regular: yes

tests/typecode/data/filetest/code/java/CommonViewerSiteFactory.jad.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
filetype_file: Java source, ASCII text
22
mimetype_file: text/x-java
33
mimetype_python: text/vnd.sun.j2me.app-descriptor
4+
filetype_pygment: Python
5+
programming_language: Python
46
is_file: yes
57
is_regular: yes
68
size: 1447

tests/typecode/data/filetest/compiled/linux/i686-shash.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: ELF 32-bit LSB executable, Intel 80386
1+
filetype_file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked,
2+
interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.4, with debug_info, not stripped
23
mimetype_file: application/x-executable
34
elf_type: executable
45
is_file: yes

tests/typecode/data/filetest/compiled/linux/x86_64-shash.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: ELF 64-bit LSB executable, x86-64
1+
filetype_file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter
2+
/lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, not stripped
23
mimetype_file: application/x-executable
34
elf_type: executable
45
is_file: yes

tests/typecode/data/filetest/data/mysql-arch.ARZ.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: gzip compressed data, from Unix, original size modulo 2^32 305
22
mimetype_file: application/gzip
33
is_file: yes
44
is_regular: yes

tests/typecode/data/filetest/data/mysql-arch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
filetype_file: MySQL table definition file
1+
filetype_file: MySQL table definition file Version 224, type DIAM_ISAM, MySQL version -1515870811
22
mimetype_file: application/octet-stream
33
is_file: yes
44
is_regular: yes

0 commit comments

Comments
 (0)