/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-06 04:21:58 UTC
  • mto: This revision was merged to the branch mainline in revision 7482.
  • Revision ID: jelmer@jelmer.uk-20200206042158-u2jqxgd6e3shlqvv
Fix python3.8 compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3614
3614
        pid = os.fork()
3615
3615
        if pid == 0:
3616
3616
            try:
3617
 
                stream = os.fdopen(c2pwrite, 'wb', 1)
 
3617
                stream = os.fdopen(c2pwrite, 'wb', 0)
3618
3618
                workaround_zealous_crypto_random()
3619
3619
                try:
3620
3620
                    import coverage
3647
3647
            os._exit(0)
3648
3648
        else:
3649
3649
            os.close(c2pwrite)
3650
 
            stream = os.fdopen(c2pread, 'rb', 1)
 
3650
            stream = os.fdopen(c2pread, 'rb', 0)
3651
3651
            test = TestInOtherProcess(stream, pid)
3652
3652
            result.append(test)
3653
3653
    return result