The use of __file__ causes the tests to fail in Python 3.4
Bug #1269898 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oneconf (Ubuntu) |
Fix Released
|
High
|
Barry Warsaw | ||
Trusty |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
In order to properly build against both Python 3.3 and 3.4, the package needs to B-D on python3-all. I'll provide a merge proposal momentarily.
Related branches
lp://staging/~barry/oneconf/lp1269898
- Didier Roche-Tolomelli: Needs Fixing
- Michael Vogt: Pending requested
-
Diff: 271 lines (+56/-31)31 files modifieddebian/changelog (+9/-0)
debian/control (+1/-1)
oneconf/paths.py (+18/-2)
test/data/integrationdatatests/host_brokenlatestsync/host (+1/-1)
test/data/integrationdatatests/host_brokenotherhosts/host (+1/-1)
test/data/integrationdatatests/host_brokenpackageset/host (+1/-1)
test/data/integrationdatatests/host_brokenpending/host (+1/-1)
test/data/syncdatatests/host_broken_pending_file/host (+1/-1)
test/data/syncdatatests/host_delete_current_host_error/host (+1/-1)
test/data/syncdatatests/host_fake_server_errors/host (+1/-1)
test/data/syncdatatests/host_firsttime_sync_other_host/host (+1/-1)
test/data/syncdatatests/host_nosilo_nopackage_onlyhost/host (+1/-1)
test/data/syncdatatests/host_nosilo_nopackage_onlyhost_noshare/host (+1/-1)
test/data/syncdatatests/host_only_current_host/host (+1/-1)
test/data/syncdatatests/host_previously_shared_notshared/host (+1/-1)
test/data/syncdatatests/host_previously_shared_with_packages_notshared/host (+1/-1)
test/data/syncdatatests/host_sync_a_newhost_with_already_other_hosts/host (+1/-1)
test/data/syncdatatests/host_sync_other_host_with_packages/host (+1/-1)
test/data/syncdatatests/host_sync_other_host_with_updated_hostname/host (+1/-1)
test/data/syncdatatests/host_sync_other_host_with_updated_packages/host (+1/-1)
test/data/syncdatatests/host_sync_remove_other_host/host (+1/-1)
test/data/syncdatatests/host_unshare_other_host/host (+1/-1)
test/data/syncdatatests/host_update_current_hostname/host (+1/-1)
test/data/syncdatatests/host_update_packages_for_current_host/host (+1/-1)
test/data/syncdatatests/host_with_packages/host (+1/-1)
test/data/syncdatatests/resulthost_firsttime_sync_other_host/host (+1/-1)
test/data/syncdatatests/resulthost_sync_a_newhost_with_already_other_hosts/host (+1/-1)
test/data/syncdatatests/resulthost_sync_other_host_with_packages/host (+1/-1)
test/data/syncdatatests/resulthost_sync_other_host_with_updated_hostname/host (+1/-1)
test/data/syncdatatests/resulthost_sync_other_host_with_updated_packages/host (+1/-1)
test/data/syncdatatests/resulthost_sync_remove_other_host/host (+1/-1)
tags: | added: ftbfs python3.4 |
Changed in oneconf (Ubuntu): | |
importance: | Undecided → High |
milestone: | none → ubuntu-14.02 |
Changed in oneconf (Ubuntu Trusty): | |
assignee: | nobody → Barry Warsaw (barry) |
summary: |
- Python 3.4 failures + The use of __file__ causes the tests to fail in Python 3.4 |
Changed in oneconf (Ubuntu Trusty): | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Actually, the problem is a little deeper. I see two test failures with Python 3.4 against trunk code. Still investigating, by you should be able to reproduce with this in Trusty (assuming python3.4 is installed).
$ python3.4 setup.py nosetests -vv --test test.test_syncing
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- barry/projects/ ubuntu/ oneconf/ lp1269898/ test/test_ syncing. py", line 417, in test_get_ all_machines_ error assertFalse( self.check_ msg_in_ output( "Saving updated", check_errors= False)) AssertionError: AssertionError: True is not false
FAIL: Test when getting all machines errors, we should stop syncing
-------
Traceback (most recent call last):
File "/home/
self.
nose.proxy.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- barry/projects/ ubuntu/ oneconf/ lp1269898/ test/test_ syncing. py", line 391, in test_server_error assertFalse( self.check_ msg_in_ output( "Saving updated", check_errors= False)) AssertionError: AssertionError: True is not false
FAIL: Test server not responsing at all
-------
Traceback (most recent call last):
File "/home/
self.
nose.proxy.