Does Behave (BDD) work with Python 3.4?

Ben

I am using Behave (BDD for Python) and have been trying to enable JUnit output without success. After troubleshooting, I realized that I am getting the following error message only when using Python 3.4:

/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 "/Users/myusername/Documents/Programming/Selenium Programming/GMail Project/GMailTests.py"
Traceback (most recent call last):
  File "/Users/myusername/Documents/Programming/Selenium Programming/GMail Project/GMailTests.py", line 62, in <module>
    config = Configuration()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/behave/configuration.py", line 481, in __init__
    load_configuration(self.defaults, verbose=verbose)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/behave/configuration.py", line 394, in load_configuration
    defaults.update(read_configuration(filename))
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/behave/configuration.py", line 348, in read_configuration
    result[dest] = cfg.get('behave', dest, use_raw_value)
TypeError: get() takes 3 positional arguments but 4 were given

When I update my project to use Python 2.7 instead, everything works fine.

Here is an important note: this is only causing trouble when I enable the JUnit output in the behave.ini config file. If I take the two lines below out of the config, everything goes fine. Unfortunately, I need to enable JUnit output for my project:

[behave]
junit=true
junit_directory=./JunitReports

If you know of any way I could make this work with Python 3.4, I'd love to know about it. Thanks in advance.

Ben

Looks like I answered my own question in my last comment. I just wanted to close the thread and provide an official answer as of 8/13/2014: behave is not fully supported on Python3.4, and even though most of it works fine when installed using pip3 install behave, the JUnit output option does not function.

There is a known issue for it that has been documented here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Does select() behave differently on python2 and python3?

From Dev

How do I skip a test in the behave python BDD framework?

From Dev

behave(BDD) AmbiguousStep Error

From Dev

Why does this argparse code behave differently between Python 2 and 3?

From Dev

Why does this argparse code behave differently between Python 2 and 3?

From Dev

Implementing custom option parser into behave does not work

From Dev

How does the ApiController class work and behave?

From Dev

Implementing custom option parser into behave does not work

From Dev

How can I get code coverage data from Python BDD functional tests using Behave?

From Dev

BDD Behave Selenium Python error no module named pages when i run my feature test

From Dev

How does inheritance work with kwargs in Python 3?

From Dev

python3 chdir() does not seem to work

From Dev

How does this Python 3 quine work?

From Dev

Python 3 absolute import does not work

From Dev

How does inheritance work with kwargs in Python 3?

From Dev

python3 chdir() does not seem to work

From Dev

pyodbc module does not work with Python3

From Dev

Why does python behave this way with variables?

From Dev

Why does set() behave so unintuitively in Python?

From Dev

How to skip steps in background of Behave BDD?

From Dev

Make an object behave like a module - Python 3

From Dev

BDD framework to work for with good reports

From Java

ipython3 does not work in the terminal with python3.7

From Dev

Python3: Why does __spec__ work?

From Dev

Python 3 networkx draw_graphviz() does not work

From Dev

ipython3 does not work in the terminal with python3.7

From Dev

Why does this python class method not work? (it uses SQLite3)

From Dev

how does replace function work in python 3.x

From Dev

Hackerrank with Python 3.x.x code does not work

Related Related

  1. 1

    Does select() behave differently on python2 and python3?

  2. 2

    How do I skip a test in the behave python BDD framework?

  3. 3

    behave(BDD) AmbiguousStep Error

  4. 4

    Why does this argparse code behave differently between Python 2 and 3?

  5. 5

    Why does this argparse code behave differently between Python 2 and 3?

  6. 6

    Implementing custom option parser into behave does not work

  7. 7

    How does the ApiController class work and behave?

  8. 8

    Implementing custom option parser into behave does not work

  9. 9

    How can I get code coverage data from Python BDD functional tests using Behave?

  10. 10

    BDD Behave Selenium Python error no module named pages when i run my feature test

  11. 11

    How does inheritance work with kwargs in Python 3?

  12. 12

    python3 chdir() does not seem to work

  13. 13

    How does this Python 3 quine work?

  14. 14

    Python 3 absolute import does not work

  15. 15

    How does inheritance work with kwargs in Python 3?

  16. 16

    python3 chdir() does not seem to work

  17. 17

    pyodbc module does not work with Python3

  18. 18

    Why does python behave this way with variables?

  19. 19

    Why does set() behave so unintuitively in Python?

  20. 20

    How to skip steps in background of Behave BDD?

  21. 21

    Make an object behave like a module - Python 3

  22. 22

    BDD framework to work for with good reports

  23. 23

    ipython3 does not work in the terminal with python3.7

  24. 24

    Python3: Why does __spec__ work?

  25. 25

    Python 3 networkx draw_graphviz() does not work

  26. 26

    ipython3 does not work in the terminal with python3.7

  27. 27

    Why does this python class method not work? (it uses SQLite3)

  28. 28

    how does replace function work in python 3.x

  29. 29

    Hackerrank with Python 3.x.x code does not work

HotTag

Archive