From 70faa8e9a0ff3cba74b4f753e257d56b768fcbd2 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Thu, 3 Aug 2023 16:33:41 +0600 Subject: Import Upstream version 1.1.1+bzr982 --- tests/test_py2_string_handling.py | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/test_py2_string_handling.py (limited to 'tests/test_py2_string_handling.py') diff --git a/tests/test_py2_string_handling.py b/tests/test_py2_string_handling.py new file mode 100644 index 0000000..ab921f6 --- /dev/null +++ b/tests/test_py2_string_handling.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2011 Michael Vogt +# +# Licensed under the GNU General Public License Version 2 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Licensed under the GNU General Public License Version 2 + +"""Regression test for a unicode decoding error in the status_details, +progress_download or error_properties attributes of the transaction, +see LP #724735. +""" + +__author__ = "Michael Vogt " + +import sys +import unittest + +if sys.version_info.major == 2: + from _test_py2_string_handling import * +else: + try: + from _test_py3_string_handling import * + except ImportError: + from ._test_py3_string_handling import * + + +if __name__ == "__main__": + unittest.main() + +# vim: ts=4 et sts=4 -- cgit v1.2.3