Hello community,

here is the log from the commit of package i18nspector for openSUSE:Factory 
checked in at 2013-12-19 12:12:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/i18nspector (Old)
 and      /work/SRC/openSUSE:Factory/.i18nspector.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "i18nspector"

Changes:
--------
--- /work/SRC/openSUSE:Factory/i18nspector/i18nspector.changes  2013-09-14 
20:11:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.i18nspector.new/i18nspector.changes     
2013-12-19 12:12:24.000000000 +0100
@@ -1,0 +2,8 @@
+Mon Dec  9 18:17:17 UTC 2013 - [email protected]
+
+- Update to 0.13.1.
+  * Fix test failures with Python 3.4.
+  * Fix stripping delay annotations from terminfo capabilities.
+  * Improve the test suite.
+
+-------------------------------------------------------------------

Old:
----
  i18nspector-0.13.tar.gz
  i18nspector-0.13.tar.gz.asc

New:
----
  i18nspector-0.13.1.tar.gz
  i18nspector-0.13.1.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ i18nspector.spec ++++++
--- /var/tmp/diff_new_pack.Hw6lp4/_old  2013-12-19 12:12:25.000000000 +0100
+++ /var/tmp/diff_new_pack.Hw6lp4/_new  2013-12-19 12:12:25.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           i18nspector
-Version:        0.13
+Version:        0.13.1
 Release:        0
 Summary:        Tool for Checking gettext POT/PO/MO Files
 License:        MIT

++++++ i18nspector-0.13.tar.gz -> i18nspector-0.13.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/doc/changelog 
new/i18nspector-0.13.1/doc/changelog
--- old/i18nspector-0.13/doc/changelog  2013-09-11 14:00:33.000000000 +0200
+++ new/i18nspector-0.13.1/doc/changelog        2013-12-09 09:15:41.000000000 
+0100
@@ -1,3 +1,11 @@
+i18nspector (0.13.1) unstable; urgency=low
+
+  * Fix test failures with Python 3.4.
+  * Fix stripping delay annotations from terminfo capabilities.
+  * Improve the test suite.
+
+ -- Jakub Wilk <[email protected]>  Mon, 09 Dec 2013 09:11:05 +0100
+
 i18nspector (0.13) unstable; urgency=low
 
   * Summary of tag changes:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/doc/i18nspector.1 
new/i18nspector-0.13.1/doc/i18nspector.1
--- old/i18nspector-0.13/doc/i18nspector.1      2013-09-11 14:00:36.000000000 
+0200
+++ new/i18nspector-0.13.1/doc/i18nspector.1    2013-12-09 09:15:43.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH I18NSPECTOR 1 "2013-09-11" "i18nspector 0.13" ""
+.TH I18NSPECTOR 1 "2013-12-09" "i18nspector 0.13.1" ""
 .SH NAME
 i18nspector \- checking tool for gettext POT, PO and MO files
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/doc/i18nspector.txt 
new/i18nspector-0.13.1/doc/i18nspector.txt
--- old/i18nspector-0.13/doc/i18nspector.txt    2013-09-11 14:00:33.000000000 
+0200
+++ new/i18nspector-0.13.1/doc/i18nspector.txt  2013-12-09 09:15:41.000000000 
+0100
@@ -7,7 +7,7 @@
 ----------------------------------------------
 
 :manual section: 1
-:version: i18nspector 0.13
+:version: i18nspector 0.13.1
 :date: |date|
 
 Synopsis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/lib/cli.py 
new/i18nspector-0.13.1/lib/cli.py
--- old/i18nspector-0.13/lib/cli.py     2013-09-11 14:00:33.000000000 +0200
+++ new/i18nspector-0.13.1/lib/cli.py   2013-12-09 09:15:41.000000000 +0100
@@ -37,7 +37,7 @@
 from . import tags
 from . import terminal
 
-__version__ = '0.13'
+__version__ = '0.13.1'
 
 def initialize_terminal():
     if sys.stdout.isatty():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/lib/terminal.py 
new/i18nspector-0.13.1/lib/terminal.py
--- old/i18nspector-0.13/lib/terminal.py        2013-09-11 14:00:33.000000000 
+0200
+++ new/i18nspector-0.13.1/lib/terminal.py      2013-12-09 09:15:41.000000000 
+0100
@@ -46,7 +46,7 @@
     white = NotImplemented
 
 _strip_delay = functools.partial(
-    re.compile(b'[$]<[0-9]+[/*]*>').sub,
+    re.compile(b'[$]<([0-9]*[.])?[0-9]+([/*]|[*][/])?>').sub,
     b''
 )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/tests/test_encodings.py 
new/i18nspector-0.13.1/tests/test_encodings.py
--- old/i18nspector-0.13/tests/test_encodings.py        2013-09-11 
14:00:34.000000000 +0200
+++ new/i18nspector-0.13.1/tests/test_encodings.py      2013-12-09 
09:15:41.000000000 +0100
@@ -19,7 +19,9 @@
 # SOFTWARE.
 
 import curses.ascii
+import sys
 
+import nose
 from nose.tools import (
     assert_equal,
     assert_false,
@@ -150,10 +152,20 @@
 
     @aux.fork_isolation
     def test_not_allowed(self):
+        encoding = 'TSCII'
         def enc():
-            ''.encode('RUSCII')
-        with assert_raises(LookupError):
+            ''.encode(encoding)
+        try:
             enc()
+        except LookupError:
+            pass
+        else:
+            raise nose.SkipTest(
+                'python{ver[0]}.{ver[1]} supports the {enc} encoding'.format(
+                    ver=sys.version_info,
+                    enc=encoding
+                )
+            )
         E.install_extra_encodings()
         with assert_raises(LookupError):
             enc()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.13/tests/test_terminal.py 
new/i18nspector-0.13.1/tests/test_terminal.py
--- old/i18nspector-0.13/tests/test_terminal.py 1970-01-01 01:00:00.000000000 
+0100
+++ new/i18nspector-0.13.1/tests/test_terminal.py       2013-12-09 
09:15:41.000000000 +0100
@@ -0,0 +1,84 @@
+# Copyright © 2012, 2013 Jakub Wilk <[email protected]>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the “Software”), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+import pty
+import os
+import sys
+
+from nose.tools import (
+    assert_equal,
+)
+
+from . import aux
+
+import lib.terminal as T
+
+def test_strip_delay():
+    def t(s, r=b''):
+        assert_equal(T._strip_delay(s), r)
+    t(b'$<1>')
+    t(b'$<2/>')
+    t(b'$<3*>')
+    t(b'$<4*/>')
+    t(b'$<.5*/>')
+    t(b'$<0.6*>')
+    s = b'$<\x9b20>'
+    t(s, s)
+
+def _get_colors():
+    return (
+        value
+        for name, value in sorted(vars(T.colors).items())
+        if name.isalpha()
+    )
+
+def test_dummy():
+    for i in _get_colors():
+        assert_equal(T.attr_fg(i), '')
+    assert_equal(T.attr_reset(), '')
+
+def _setup_tty(term):
+    master_fd, slave_fd = pty.openpty()
+    os.dup2(slave_fd, pty.STDOUT_FILENO)
+    sys.stdout = sys.__stdout__
+    os.environ['TERM'] = term
+    T.initialize()
+
[email protected]_isolation
+def test_vt100():
+    _setup_tty('vt100')
+    for i in _get_colors():
+        assert_equal(T.attr_fg(i), '')
+    assert_equal(T.attr_reset(), '\x1b[m\x0f')
+
[email protected]_isolation
+def test_ansi():
+    _setup_tty('ansi')
+    assert_equal(T.attr_fg(T.colors.black), '\x1b[30m')
+    assert_equal(T.attr_fg(T.colors.red), '\x1b[31m')
+    assert_equal(T.attr_fg(T.colors.green), '\x1b[32m')
+    assert_equal(T.attr_fg(T.colors.yellow), '\x1b[33m')
+    assert_equal(T.attr_fg(T.colors.blue), '\x1b[34m')
+    assert_equal(T.attr_fg(T.colors.magenta), '\x1b[35m')
+    assert_equal(T.attr_fg(T.colors.cyan), '\x1b[36m')
+    assert_equal(T.attr_fg(T.colors.white), '\x1b[37m')
+    assert_equal(T.attr_reset(), '\x1b[0;10m')
+
+# vim:ts=4 sw=4 et

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to