[Rpm-maint] [rpm-software-management/rpm] Python tests are running even python support is disabled (#264)

Igor Gnatenko notifications at github.com
Thu Jul 20 13:36:18 UTC 2017


I think I will not add full tests log, but tests are failing on

```python
cat << EOF > test.py

import rpm, sys

dbpath=rpm.expandMacro('%_dbpath')

rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)

def myprint(msg = ''):

    sys.stdout.write('%s\n' % msg)



myprint(rpm.__version__)



EOF

python test.py



--- /dev/null	2017-07-20 10:25:05.082012205 +0000

+++ /opt/rpm/tests/rpmtests.dir/at-groups/340/stderr	2017-07-20 10:26:07.746704426 +0000

@@ -0,0 +1,4 @@

+Traceback (most recent call last):

+  File "test.py", line 1, in <module>

+    import rpm, sys

+ImportError: No module named rpm

--- -	2017-07-20 10:26:07.755072483 +0000

+++ /opt/rpm/tests/rpmtests.dir/at-groups/340/stdout	2017-07-20 10:26:07.750704465 +0000

@@ -1,2 +1 @@

-4.13.90

 

./rpmpython.at:6: exit code was 1, expected 0
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/264
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170720/18425d6a/attachment.html>


More information about the Rpm-maint mailing list