Compare commits

...

No commits in common. 'f38' and 'i9cr' have entirely different histories.
f38 ... i9cr

2
.gitignore vendored

@ -1 +1 @@
/pycotap-1.1.0.tar.gz SOURCES/pycotap-1.1.0.tar.gz

@ -0,0 +1 @@
43cb0e5dbf0c4cf32b9705f010d1a236c786081c SOURCES/pycotap-1.1.0.tar.gz

@ -1,3 +0,0 @@
# python-pycotap
The python-pycotap package

@ -3,7 +3,7 @@
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.1.0 Version: 1.1.0
Release: 15%{?dist} Release: 18%{?dist}
Summary: A tiny test runner that outputs TAP results to standard output Summary: A tiny test runner that outputs TAP results to standard output
License: MIT License: MIT
@ -49,6 +49,18 @@ find %{buildroot}/%{python3_sitelib} -name '*.py' | xargs sed -i '/^#!/d'
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Sun Nov 19 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.1.0-18
- Rebuilt for MSVSphere 9.2
* Mon Aug 21 2023 Parag Nemade <pnemade AT fedoraproject DOT org> - 1.1.0-18
- Mark this as SPDX license expression converted
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.1.0-16
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15 * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

@ -1 +0,0 @@
SHA512 (pycotap-1.1.0.tar.gz) = dbe8d76c3e4b934dd4ff9ec0d48caafef3ae5583046a7316607b3c8cebf8cb920c68dc46487243aac81823994805c76f2be8ff0cbda593c70b70f268661fa289

@ -1,53 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import unittest
# Need to flush the output against Gtk.main()
def printflush(sentence):
try:
print(sentence, flush=True)
except IOError:
pass
def printerr(sentence):
try:
print(sentence, flush=True, file=sys.stderr)
except IOError:
pass
from pycotap import TAPTestRunner
from pycotap import LogMode
printflush('## Load pycotap')
class AnthyTest(unittest.TestCase):
__test_index = 0
@classmethod
def setUpClass(cls):
printflush('## setUpclass done')
cls.__test_index += 1
def setUp(self):
self.__test_index += 1
printflush('## setUp done')
def test_case1(self):
if self.__test_index != 2:
with self.subTest(i = self.__test_index):
self.fail('setUp does not run: ' + error.message)
printflush('## Test done %d' % self.__test_index)
def main():
loader = unittest.TestLoader()
# Log should be in stderr instead of StringIO
runner = TAPTestRunner(test_output_log=LogMode.LogToError)
unittest.main(testRunner=runner, testLoader=loader)
if __name__ == '__main__':
main()

@ -1,13 +0,0 @@
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
#- role: standard-test-beakerlib
required_packages:
- python3-pycotap
tests:
- smoke1:
dir: .
run: ./tests.py
Loading…
Cancel
Save